BMS thermal runaway prevention