You would not use a laptop-style lithium battery for battery backup for your home. You would use LFP. It does not have the burst-into-flame problem you are thinking of.
At some point I expect we will look back at the era when we used really flammable electrolytes and laugh about how wild that was. I bet we are not that far from it being just a memory.