Sorry to hear that.. Can you please provide whatever info you have concerning the
exact conditions this happened in?
There's maaany stories & videos about Li-ions bursting into flames, but with very few exceptions they come down to:
* While being charged. Or even under extreme stress, like driving a nail through it, or hooking up to a car battery to watch it explode.
* In series configuration, with 1 of the cells being defective / much lower capacity than the others. Or using a mix of different cells / cells in different state of charge.
* Cheap / poor quality / fake cells.
* Physical damage.
* Connected to monitoring / protection circuitry, with that circuitry failing. Not to mention ridiculously cheap chargers that are basically constant voltage source without any kind of safety feature.
* Some history of abuse (under / overcharging , dropping from a height etc).
Loose, quality Li-ions just sitting on a shelf, bursting spontaneously into flames, is very very rare.