I can play very demanding videos games
Your pc might be overheating. Make sure that you have good airflow around it. (Don't put it inside of a desk and close the door.)
Check your hardware vendor's web site for diagnostic tools for your motherboard and video card. Typically there is a hardware diagnostics test tool to exercise the components. The vendor may also offer a monitor tool to report on temperature, and if all of your fans are working.
If you can't find any tools, the folks at CPUID have a free hardware monitor that might help. Watch component temperatures. (Not a Microsoft supported site/tool.)
https://www.cpuid.com/softwares/hwmonitor.html
I don't think that those events are related, but you would need to share the full event message to know that.
I wrote a Powershell script that I called RecentEvents.ps1 that will read the entries from all eventlogs and sort by TOD. That will include all of the "Applications and Services logs". Run the script with "run as administrator". That should give you a full picture of everything that was happening around the time that your pc shut down.
https://learn.microsoft.com/en-us/answers/questions/102481/eventlog-madness