@theshahidshaik,
Welcome to the HP Support Community!
I reviewed your post and I understand that the computer is overheating.
Don’t worry, I assure you I will try my best to get this sorted.
I recommend you update the BIOS and the graphics driver from the below link and check if it helps.
BIOS: https://ftp.hp.com/pub/softpaq/sp100501-101000/sp100725.exe
Graphics: https://ftp.hp.com/pub/softpaq/sp99501-100000/sp99570.exe
Graphics Power Control IC firmware: https://ftp.hp.com/pub/softpaq/sp95001-95500/sp95380.exe
Let me know how it goes and you have a great day!
If you wish to show appreciation for my efforts, mark my post as Accept as Solution. Your feedback counts!
Cheers!
The_Fossette
I am an HP Employee