I'd check if the fan is working. If you haven't over pasted the thermal CPU paste then that would be my guess. Also HP have their own programs to cool the CPU so if you've uninstalled them that could also be a problem. Check their site for your particular model number for their management service.
Surface Pro (2017) vs Surface Pro 4