I was also thinking about the damaged thermal pasting as the root cause of the issue.
haha, a simple loose wire made your life a hell for a few days.
Whenever my PC gets overheating issues, the first thing I check is any possible distraction for the free airflow.