Do something, leave the Resource Monitor running in the background and as soon as it freezes, wait until it unfreezes and take a look there, it will be clear what caused the freeze if it was a bottleneck from hardware as it will show unusally high usage for the problematic component (eg: it'll show it just had a spike where it was 100% usage for CPU), really simple way to troubleshoot things. Also, make sure you don't have any bad background processes (eg: I've had something similar caused by a "mole" spyware years back). Another thing to try is the moment it freezes, assuming it freezes for a while, just pull any network cables out, this may be very rare, but sometimes the network itself has an issue that just freezes the computer as a whole or individual programs (or rarely cause bottlenecks, but more commonly the stupid "PID 4 System.exe drawing 100% of HDD speed" that old computers very ofter get these days).