Right it involves the electronics frying, melting, catching fire, etc.
You realize that most of this can be done today right? Gunsmiths can make magazines today that track ammo by the tension in the springs. I've seen an AK catch fire with one. Melted the sensor. Magazine still worked fine. Why? Because it was designed intelligently. Mag release can be done electronically too today, as can firing electronically, and many types of safeties. The only thing on the list I haven't seen done is fire selection, which is primarily because full-auto weapons are so heavily restricted in the U.S. or at least restricted enough people don't spend as much money tinkering with them.
Could they mess the gun up? Sure they can. I've watched people manage to mess the gun up with normal extended magazines that have no electrical parts. Well designed ones separate the electrical from the mechanical for obvious reasons. The magazines that are good keep the reader below the spring with a buffer space. It makes the mag a little longer, but doesn't screw the mag if it breaks or melts (more common than you would think in many guns, a lot of heat transfers across the brass when you fire rapidly as much gun lovers like to do). You see, that's is preparing for catastrophic failure of the sensor, which is what I'm talking about. Sure, you can't prepare for how it get's bricked, but you can prepare for the worst case scenario.
What's the worst case scenario? The thing slags and get's in the way of moving parts, or the thing locks up and prevents firing. Smart design can compensate for the former while manual backup can take care of the later. Smart design is not hard. It can be time consuming, nervewracking, and frustrating to no end at certain points, but in the end that is what R&D is for. It isn't a "this might be hacked" generality, it's a "this might melt, catch on fire, surge, etc." generality that they think about during the design.
So they weren't able to prepare for the hacker engaging the safety four times in a row, resetting the ammo counter and engaging the slide to slag the electronics. If it's built right, you click the safety back off (or hold it off if it's still engaged electronically), pull the trigger, and it goes boom. Of course, that is assuming intelligent design which is something worth researching if you're working on a project about a guns. I got a headstart there growing up with a gunsmith for a grandpa, but the leaps and bounds we've made in the past decade are astounding, and SR barely scratches the surface of what we can do today. To think in the future, it's worse is just silly.
Now, you could say that corps want their guns to slag because it's more money for them, but that ignores one of the fundamentals of marketing. Branding. You have to deliver a certain quality, or people turn to other alternatives.