Game freeze whole PC

Hello, I recently bought a new PC (ryzen 5600, rx6600). And After a while playing on-line the computer completely freeze and fans slow down. I have drivers installed and cpu temp is about 60 Celsius.

The game is bought via Xbox platform. Before I had pirate copy (to try out) and it happened as well in offline game but not that often.