Iphone restart when i pressed screen
So i just bought this iphone 12 and when i was gaming it froze and restart, i checked the analytic data and it says “thermalmonitord” “missing sensor tg0b tg0v”. one time it froze and restart then the battery stuck at 0% and not charging and says unknown part for battery in the setting, after few restart the phone back to normal and the battery is no longer an unknown part.
and right now i tried pressing my screen and the back of my phone together ( in the middle part) and the phone will restart by itself. But when i tried it on my iphone 11 it doesnt becomes like that.
thanks for help
iPhone 12, iOS 17