If you machine works ok in Safe Mode then it is not an overheating problem but probably a driver or network problem as only the basics are loaded in Safe Mode.
I will assume you always run an up to date anti virus programme and firewall.
If the machine was OK and then you changed Windows...