A commonly known way of preventing overheating is to make sure to replace your thermal paste when it has begun to dry out. At least once a year, replace the thermal compound located between the heatsink and the CPU/GPU (depending on your system). This will extend the CPU's lifetime, and by proxy, the life of your system in general.
You can gauge your system's temperature through an application, which will provide useful information.
Here's what you need with instructions added.
Thermal Compound: https://www.originpc.com/gearshop/categories/Thermal%20Compound
Refer to your motherboard manual for more detailed information about thermal paste replacement. If you still need assistance, please do not hesitate to contact our support team.