Good Day! Allow me to welcome you to the HP forums! I understand that you require assistance regarding overheating issues with the computer. I will be delighted to assist you.
Great understanding and fabulous description of the issue before posting. Kudos to you on that score. You are a valued HP customer and it is paramount to assist you here. I take it as a privilege to share this platform with you.
For better clarity and to assist you better, I would require more information regarding this:
Please let me know the complete model# or product# of the unit to help you better.
Did you try updating the bios?
Did it happen after a windows, software or driver update?
Then please update the bios, chipset and graphics drivers from this link: http://hp.com/drivers and check if the situation is corrected. If this does not fix the issue please contact HP phone support to get the unit serviced.