Computer overheating is usually caused by multiple factors. Dust, if left to build up over time, can block the fans and cause the CPU or GPU to overheat. Too many applications running at once can cause the fans to go into overdrive, and if this happens too many times, the fans might stop working.
Things to be done:
Cooling your PC can be as easy as simply cleaning it. Removing dust, dirt, and other particles that get into a PC can improve speed, performance, and air flow all at once.
Improve airflow: it will help prevent overheating by moving cooler air through your device.
Thermal paste is a heat-conductive material connecting the CPU or GPU with the metal heat sinks that help dissipate heat to keep your PC cool. Thermal paste can dry out over time, especially if you regularly push your PC beyond its natural limits. Reapply thermal paste.
Uninstall apps which you don't use.