The foolproof method is to unplug electronics when thunderstorms come.
I’m now in the process of finishing my new all concrete house with 12” solid walls lol. Screw lightning. It’s not a rational reaction, but it’s my reaction.
You can often see this even with your regular mains voltage, especially if you have some inductive load (anything with a transformer) attached. A small spark arc is visible when you flick the switch.