I just had this problem on my system, I was getting random freezes and low FPS degradation just from doing a circuit at UUEM in Russia.
What has fixed it for me was to run the following commands in teminal using admin rights.
SFC /SCANNOW
Followed by:
DISM /ONLINE /CLEANUP-IMAGE /RESTOREHEALTH
Then rebooting the system.
I also turned off HAGS in windows display settings.
Now I’m back to stellar performance. Seems windows 11 was messed up at the system level after the last few updates.