iPhone keeps restarting: How to identify the (probable) offending app?
A phone does not and should not reboot just because of some misbehaving app. The problem you have occurs due to issues on a lower level, such as battery or memory fault.

You don't have any means to determine and fix those issues, so just hand it over to a repair shop.