When you say random freeze, do you mean a crash (everything stops working) or a pause (freezes for a short bit then continues)? Does the screen stay the same, turn blue, or a random colour? And what temperatures are your CPU and other components running at the time?
If it’s the screen just stays the same and gets stuck and nothing responds (not even the mouse) then it sounds like part of the digital backbone (communication between CPU, Storage, memory and graphics) is having issues. Usually this means firmwares or hardware, but could also be a power failure (I’ve seen this happen with cheap Chinese PSUs) or thermal issues (insufficient airflow or badly applied thermal paste).
Check for the latest updates on your graphics card, check for firmware updates for your SSD and motherboard, and consider using a USB boot to run SecurErase on your SSD before installing Windows fresh on it. If it still happens after all that, reduce the system down to a minimum configuration (remove graphics card if possible, all except 1 stick of RAM, all except boot SSD, 1 Monitor, test, them move RAM to another slot and test).