Uh, maybe stop putting hackable electronic controls everywhere. Maybe?
Drive by wire. Fly by wire. Ship by wire. Heating controls by wire. Financials by wire. House energy management by wire. Security by wire. Military equipment by wire.
There has gotta be some school where computer hacking is a declared major. Probably taught online.
Hackthebox.com is one.
I signed up a couple of weeks ago and plan to do some of the classes this weekend.