Open Activity Monitor, sort by CPU, and quit only the top two apps using more than 80 percent that you recognize, then close your browser and relaunch it with only the tabs you actually need, and finally leave the Mac plugged in and awake for one to two hours so Spotlight and Photos can quietly finish reindexing. This combination usually ends the heat spike without scary terminal commands or giving up important apps.