Game freezing on Windows 11, any solution?

I just formatted my PC because it had a virus. After the installation, I set everything up, installed the latest Nvidia driver, etc. However, any game I open keeps freezing. I’ve already tried GTA V on minimum settings, The Sims 4 on minimum, and nothing. What could I have forgotten after installing Windows? Usually you just have to install the video card driver, right? What else could be having a problem?

Did the video card burn out or is it Windows 11 that’s bad for games?