Hello Ianw1,
I understand that your computer is freezing.
First make sure that there is not any dust inside the system that could be causing the computer to overheat.
Turn off the computer.
As you power it back on tap the F2 key. This will load hardware diagnostics.
Run the startup test.
This will test all the hardware in the system and detect any problems.
Let me know how everything goes.