France has the right idea.
Nukes.
As much as I hate to say it, nothing short of nukes can guarantee your sovereignty against another nuclear nation.
Build your own defense/weapons.
F35s are likely dead on arrival in a Canada-US altercation, whether that's through a kill switch or just supply chain for maintenance.