However, if you are using outdated drivers or corrupt drivers for the hardware of your computer it might lead to your system getting freeze. Most of the manufacturers provide drivers which can be installed and used for the proper functioning of the device. We install drivers on any computer to make sure that different hardware components work properly.
Overheating might be one of the common reasons that your Windows 10 freezes randomly.
If the heat vents of your laptop or computer are blocked with something make sure that you clear them off as they can restrict heat out of the laptop and will lead to overheating. Check your room temperature as it is also going to affect your computer.