Well then the good news is that if the CME is coming at you from below, it’s got to get through the entire planet before it hits you, and if it manages to do that, we’ve all got much more pressing things to worry ourselves about.
That might be a possibility, although the military should really not be aiming beam emitters that can do such things at civilians. There was some testing many years ago around putting electrical burst generators on cop cars that would direct such a beam at a fleeing suspect and cause disruptions in signaling between the ECU and various other components, hopefully making the car stall. I don’t remember seeing that it had the capability of actually destroying those electronics, though, just interrupting the signals.
Something that could destroy the electronics would need to be much higher power, and I would guess anything that could do that would also cook anyone who got in its way. And from my encounters (professional, not criminal) with well-funded police departments, I’ve never seen such a device in the field so it must not have worked the way it needed to even to just interrupt signals.