Solid state batteries dont have these flame up problems. That’s why Toyota has spent 10 years developing that tech and will be rolling it out.
Any device that stores energy will have a damage-triggered quick release of the energy PROBLEM.
There is no defeating the laws of physics.