PC began freezing and shutting down while idle.
It seems like you're asking whether the issue leans more toward a hardware or software concern.
Have you fixed your issue?