I would monitor the systems thermal sensors and fans using [https://www.tunabellysoftware.com/tgpro/|TG Pro].
Running games can be hard on a system, many of the newer games require a proper desktop gaming rig which the MacBook Pro is not!
I would take the time to dust out the system fully and as you’ve already cooked it I would clean off and replace the thermal paste. Both actions should help in lowering the thermal stress your system suffers from.
I would also clean out the drive making sure it has at least 1/4 of the storage unused. A full drive will cause the system to wear level which can be quite intense and cause the system to heat up.