Put it in safe mode it might be an app you recently installed. Press power button. Hold the on screen power off for 5sec and it will ask to reboot in safe mode.
Keep the phone in safe mode for a little while and see if reboots stop. If they do then an app is your culprit. If it continues a system file might be corrupt and you will need a factory reset.