Terrifying article about the impact of solar weather on our (electricity-dependent) society: https://www.newyorker.com/magazine/2024/03/04/what-a-major-s...
Just being disconnected already helps, it comes down to strength of the solar flare vs length of metal piece.
I know some military hardware is built with a metal box with holes on the inside of the plastic case -- a faraday cage -- though that probably also serves to minimize RF leaks.