Seen similar
My son's tablet computer kept shutting down because the sensors thought the case being folded over at the back meant it was closed so put the tablet into standby. I "fixed" this by putting the tablet in the case 180 degrees round, so the sensors & batteries didn't match up and it worked fine. It blocked the camera hole, but that wasn't really used much so not a loss.