And same for the GPU. Both have a thermal diode that as the temp reaches a certain point the clock speeds are reduced. These are baked into the silicon because we could not rely on software alone to throttle and keep the chips from melting down.
I think your model is at https://support.hp.com/us-en/document/c04370619 so the next move would be to try fan control software and max out the fans and/or put it on a cooling pad.
I have tried many ways to disable power throttling in windows on a HP Beats 15-P099NR Laptop, everything from the power management, to regedit is there a way to force it to disable the power throttling and stop it from throttling down and I have had every version of Windows 10 installed on it since I got it used last year from a pawnshop ?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic