S7 Edge constantly restarts itself and heats up each time

A

AC Question

About every 1 minute the phone restarts itself, and during that time all app functions are reduced, the keyboard doesn't appear, can't connect to WiFi etc. Also the phone gets hot in the top right corner and loses about 5% charge each time. I think this started when I installed the latest update, which I had been postponing for a while.

I tried restarting in safe mode and clearing the cache, but it still resets in safe mode.

Any ideas, my phone is pretty much unusable at the moment :(