Not an expert but my guess is that it might be a battery problem sorry if I get it wrong, My phone’s battery is slightly swollen and it does the same thing
open