BMS protection