GPS reboots the phone
Overheating.

You may have used it intensely and when you lock the screen you then put it in ur pocket?

Your phone will be overheating and restarting itself to stop damge to the circuits/processor.

Similar user issue here