Why does my pc randomly turn of only while playing games?

I use my pc for daily needs and it shows no problems, but since 2 days ago literally 5 minutes into the game it turns of and it brings itself backon.

I was playing Life is Strange Remastered and i played for 1 hour or so and then it suddenly turned off then i lost interes to continue it. And then the day after i went in and 5min into the story it turned off. Now what ever game i play it turns off after just 5 mins.

I did benchmark for cpu and gpu i thought it was overheating but no perfect scores on them.

Any help pr tips?

Specs: rtx 4060, i7-1170f, 16gb ram, 512 ssd