Windows prompts to restart and restore stating a registry error
Cause: Windows writes a large part of its registry into the RAM. If the RAM is faulty, Windows finds it difficult to read the registry, and so prompts the user to restart and restore the system.
Solution: Replace your system RAM with a known working piece of RAM. Use the machine as you would normally, for diagnostic purposes. If the system runs without any glitches, then go through the procedure of isolation to identify which module is corrupt, and replace it with a new one.