My phone Restart Automatically

I have Nokia 6.1 plus. My phone working fine when I do chatting and View Images. Whenever I want to watch the video they start to restart automatically. When I use to play videos in safe mode then they working fine.

I reset my phone but the issue was not solved.

Any solution for this?