Boeing 737MAX engine and avionics shut down during flight XBOX

Like the title states…i could of just taken off in the 737MAX or on final approach to landing,and all of a sudden,avionic screens switch off/go blank. Or avionics switch off along with the rest of the aircraft,full switch off in flight. I dont know whats happening. I use AI autopilot start up from the ingame toolbar,and then take manual control for take off. I use AI during flight,Rnav,Vnav etc,and on ils landing i take control manually at about 1,000ft from landing. This issue could happen randomly from when iv started the plane to landing. Im using controller and mouse also. Am i doing something wrong? Any help is much appreciated!