Hi folks, many faulty hardwarde issue can cause thoses freeze for sure but in most cases of freeze i had over years on many pc i had,
1- the power supply and/or AC wall plug was faulty to deliver stable current, no doubt it's a good start to have good stable power and tension first, to remove thoses problem from the list i always use a power backup to regulate and stabilize power from the wall and double check the pc psu with a multimeter to see if he fail somewhere to deliver properly.
2- the motherboard need to sit and get properly grounded into the pc case otherwise audio crackle and pc freeze or stuttering could happen.
3- of course all of this can also be caused by faulty/corrupted bios or wrong setting, also faulty hardware like motherboard, cpu, ram, gpu, and even faulty mecanic hard drive.
be sure to start troubleshoot with stable current and reinstall motherboard in the case, sometime the screw fail to ground the mobo properly at the pc case at first install and do your test with minimal hardware : 1 stick of ram, one hard drive and default bios values and install a fresh windows 10 on it, let windows 10 install all chipset drivers from update to give a try....