Ok, you'll want to find out what is trying to edit your registry. The error should be listed in the event viewer. It will list the name of the program/service that's doing it.
It maybe a windows service trying to fix the registry from the windows repair. Or it could be some sort of malware.
Just to be on the safe side, you may want to boot into safe mode with networking, download, install, and update malwarebytes. Then do a full system scan.http://www.malwarebytes.org/