Hello.
I had the same problem.
The phone restarts sometimes. And sometimes it called SOS.
The problem is not the software, it is the hardware.
The power button stays pressed.
That causes continuous restarts.
And if you have activated the option that if you press the power button for 5 seconds...