Open up the case and check that you don’t have any dust on the fans. I’ve had some issues where fans have gotten so gunked up they can’t move the air around fast enough. You could also try to put a fan next to the computer and try to cool it off.
If there’s actual hardware problems with your computer these are only temporary bandaids and you should start looking for a new computer or replacement parts.