Complete computer freeze

Hello! I’ve been struggling with a very strange problem for a long time now… So… I render all my shots with Path Tracer, without using Denoiser. For example, if I have 5000 Spatial Samples or even 1200 set, after 10 minutes I experience a computer freeze (the computer time does not change). If I’m lucky and I can open the control panel or whatever, then it will hang for a while and continue rendering until the next hang and do a similar operation. What can I do? Why is this happening? TDR set to the maximum possible. RTX 2080, Ryzen 5900x. 32gb ram.