Electric collaps during flight

Hi all !!
Two flights in a row over Panama and 2 crashes after a general power failure !!
The two times, I played with Position Lights when crashes occur…
Fuel is OK ! No mountain here !
ATC suddenly down. Noway to restart engins but landing gear work…
I tried a third time without playing with lights, and it’s OK…
Do you know whats happen ? Is it a bug ??