Glad you got it sorted! I use the HP as a test machine for software and I had the same issue...I found a few solutions
Causes
1. Dust
2. Windows update (For some reason when it runs, the fan goes mental)
3. Run from admin powershell or cmd powercfg /energy
Note | Powercfg will run a quick test...