thermal issues are usually just an immediate shutdown though and not freezing right? ram is a likely issue unless its windows or a driver possibly freezing the system. i know we are always quick to think its hardware but software could be an issue as well.
Note - the pc would just switch off instead of freezing. I changed the setting to stop this to hopefully get a BSOD to diagnose issue. Don't know if that is relevant