A DP class 2 vessel experienced a blackout of Busbar B2 during a switch to hybrid mode, leading to the loss of two thrusters. An investigation revealed a timing issue in the Energy Management System that caused the system to switch modes incorrectly,