@EdeforsClick here for steps to resolve overheating issues, you could try reducing the resolution on the in-game settings and switch the windows settings to performance rather than visual effects to make a minor change, however, the game may heat up your PC, hence make sure you are using a cooling pad as well, to be on a safer side.
Here's how you change windows settings:
Go to Start Menu > click on Settings.
Type performance > choose to Adjust the appearance and performance of Windows.
In the new window, go to the Visual Effects and select Adjust for best performance.
click Apply and Ok...this should do the trick.
Also, to resolve issues such as Fan is Noisy and Spins Constantly:
Updating your Notebook computer BIOS
Keeping notebook air vents clear and clean
Increasing the efficiency of the notebook to reduce heat
Using Windows Task Manager to identify corrupt processes
Selecting power save settings to shut off your computer when it is not in use
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".