You can check the device on Safe Mode option through the following steps:
- Restart your device
- When it shows Samsung logo, you have to press and hold the volume down key till you reach Safe Mode
- You can try to observe the device for two or three hours
If the device is working fine in the safe mode, it means that this issue caused by some Third party apps you already installed on your device in the normal mode. Kindly check your Third party apps. and remove them one by one until resolving the issue.
If the issue contines, please bring the device to a Samsung Service Center to have the device checked out.