Keith Butterfield, Yacht and Marine Surveyor. Costa del Sol, Spain.

Charging a lithium-ion battery creates heat. This heat usually dissipates, however, if something goes wrong, the battery creates heat faster than it can shed it, and this increased heat damages internal components, which in turn creates more heat and pressure. This can continue until there is a critical failure.

Most lithium-ion batteries also include a battery management system built in.  The management system will monitor over-voltage, under-voltage, over-current, over-temperature, short circuit, and cell imbalance. It will disconnect the battery from the circuit if any of these events occur, protecting your battery.