You would need armour comparable to a battle tank to have adequate protection against these failures. The key is to prevent them from happening in the first place and designing the aircraft so that critical components and wiring won’t be damaged if they occur. If this can’t be done, then separate back up systems for the most critical systems need to be looked at.
An emergency means of shutting of the fuel supply at the tank end could be worth having.