A PC that freezes can be very annoying.
There are so many possible causes it is often difficult to isolate.
Here are a few of my suggestions that might help.
RAM
Download Memtest, create a bootable USB stick and boot the computer into a Memtest full RAM test and let it run overnight.
That...