(I don’t agree that hedging against potential action by a single major strategic adversary is a strong move toward autarky, however—if, say, Canada had tons of fabs instead of the precariously-perched Taiwan, I bet we’d not be spending so much money on them)
Energy sovereignty is a good reason Europe needs to be getting off fossil fuels ASAP.
However, the on-shoring of chip production is especially for military strategic purposes. Right now a majority of chip fabs are all in Taiwan, and within striking range of a country that likes to rattle its sabers. Losing Taiwan's fabs would be a problem wrt military supply.
right now the panama is at lower capacity due to droughts and the red sea leading to the suez is a conflict zone.