If your Windows system keeps restarting without allowing you to download or complete the download process, there could be a few reasons behind this issue like,
Check for Hardware Issues
Boot into Safe Mode
Check for Updates
Disable Automatic Restart
Check for Overheating
Scan for Malware
Perform a System Restore
Perform a Clean Install of Windows