Yes, of course the same applies to AC. Of course you can use diodes with appropriate breakdown voltages to clamp these overloads.
If your switch affects your electronics, either you are switching inductive loads that shouldn't be switched the way you do it, or you have electronic devices that should be better-shielded and filtered.
The solution is hence to inspect what you're switching, and to better shield and filter your "sensitive electronics". Your grid is extremely low impedance: the "tiny" bit amount of energy a load that you can switch at home has should pretty much be absorbed by the grid with practically no effect on other devices through the power grid.
So, my guess is you've got badly arcing switches and badly designed electronics which emit RF over the air and are too sensitive to RF coming from the air, respectively.
Assume this: the voltage in your house doesn't suddenly drop when you turn on your stove, which might be drawing 20 A, because the grid can easily supply the sudden change in current drawn. Turning off a 100 W inductive appliance reaaaally shouldn't push more energy into the grid than that – and shouldn't, hence, have a worse effect.