Windows PC restarts upon closing the game

NoobMaster05

Newcomer
Hello, I started playing Stardew Valley recently and had no issues for some time. But after some days, when i want to close the game, i click "Exit to Desktop" and my PC just crashes and restarts. So from then on I would just click to go back to main menu and just exit from there which worked well. But since today, no matter if i exit to desktop or main menu, my PC just crashes to black screen and restarts. How do i fix this ?

PC Specs:
AMD Ryzen 5 3400G with Vega 11 Graphics
MSI B450M PRO m2 MAX
16 GB 3200 Mhz RAM
Windows 11
 
Top