That suggests more of a hardware problem, I would try running the server as a basic NAS, after booting in safe mode and without any dockers/VMs for a few days, if it still locks up like that it's almost certainly hardware, if not start enabling the other services one at a time.