Every lithium ion battery has the potential to fail like this, whether a single AA cell in a small torch, or thousands of them together in a vehicle battery. A fault in manufacturing can cause this, maybe not immediately, but the clock is ticking from day one. As the battery charges and discharges, ions pass through the separator to the opposite electrode, and back during charging. Just like any battery. Some, apparently, don't make it back. We are used to lead acid batteries in our cars failing after several years, and if opened up, we will find debris collected at the bottom, or deposits on one plate preventing cthe normal chemical reaction. In a normal car battery, it loses power, and gives up. Many lithium ion batteries will die the same way, as experienced as our phne batteries gently give up. But, some of the non-returned ions can build up on the electrode, causing little peaks. Often we will find swollen batteries, particularly in laptops and phones. If that peak pierces the separator, it can just kill that cell, or it can cause a short, which creates heat. The temperature at which lithium ion will ignite is arouond 80 degrees celcius, not particularly hot. Then the gassing occurs, and if not able to escape, the flammable gas can explode. That risk is with each of the thousand or so cells in an electric car battery. Our phones can have batteries rated at 5-7000mAh, and when these burn there is a lot of energy to release, but throwing the thing out onto the concrete patio will usually let it burn out without much damage or other risk. When an EV has a 80-100kW battery, the energy stored is enormous. Think how long it takes you to use 100kW in your home. As we can see, even a company like Samsung can have manufacturing defects in their batteries. What risk from the cheaper Chinese manufacturers.
Once a Li-ion battery is burning, there's no stopping it. The chemical process creates its own oxygen, it burns at 2500 degC, so pouring water on only helps contain it, not put it out. The temp will melt the reinforcing steel in concrete, hence building collapses. As a comparison, petrol burns at around 850 degC, and diesel, if you can get it lit, at around 650 degC. Simple in comparison for the fire service to manage.
If it wasn't for the mad push to electrify everything, I thin health & safety might have banned such large Li-ion batteries. For me, a power tool battery is quite big enough, thank you.
Now the challenge is parking at supermarkets, at least 15m from an EV or hybrid.