Why does my pc restart when I play a game?

Mu
4

My pc restarts when I play a game e.g. With csgo, valorant, and fortnite

But if I'm not in a game right now, it usually doesn't restart, maybe it is the bios?

ja

Check your hardware temperatures. If these are too high, the computer can automatically switch off and restart.

Cy

The PC restarts because it crashed.
Your system is unstable.

Mu

Why?

Mu

The temperatures are ok the graphics card gets warm up to 50 degrees

the cpu up to 61