If your laptop is stuck in a restarting loop, there are several things you can try to fix the problem:
1. Boot into Safe Mode: Restart your laptop and repeatedly press the F8 key while it's booting up. This should bring up the Advanced Boot Options menu. Select Safe Mode and see if your laptop starts up in this mode.
2. Run System Restore: If you're able to boot into Windows, try restoring your system to a point before the problem started. To do this, go to Start > Control Panel > System and Security > System > System Protection > System Restore. Choose a restore point and follow the prompts to complete the process.
3. Check for Windows Updates: Make sure your laptop is up-to-date with the latest Windows updates. Go to Start > Settings > Update & Security > Windows Update and check for any available updates.
4. Disable automatic restarts: If your laptop keeps restarting before you can attempt any fixes, you'll need to disable automatic restarts. To do this, press F8 while your laptop is booting up and select "Disable automatic restart on system failure".
5. Run a System File Checker scan: Open the Command Prompt as an administrator and type "sfc /scannow". This will scan your system files and attempt to repair any corrupted files.
If none of these fixes work, it may be a hardware issue and you should consider taking your laptop to a professional for further diagnosis and repair.