Unity freezes my whole PC

Unity freezes my whole PC, causing me to restart my whole computer. It happens in editing mode and in play mode. It only happens in one scene, there’s isnt a lot more then other scene’s I make, so the amount of objects isn’t a problem. Is there anyone with the same problem? Or does anyone has a solution? This keeps happening, I don’t get any errors or messages when I have restarted.

This can happen when Unity is baking the lights; the processes use a huge amount of memory and can make it impossible to use the computer at all. Setting up the GI cache (in Edit/Preferences) to the maximum would help with that.

How much memory do you have? How much memory did you allocate to the pagefile (Virtual memory in 32-bit version of Windows - Windows Server | Microsoft Learn)? Setting up a (very) large pagefile would help a lot too.