Hello,
No easy answer here.
Your best bet is to use a tool like Sysinternals's Process Monitor to see what registry locations are being accessed when the error occurs and then potentially fix those keys.
Link to Process Monitor.
https://learn.microsoft.com/en-us/sysinternals/downloads/procmon
I am not aware of an easier way to repair a corrupted registry. If it's just a single key that is unreadable, you may be able to repair it, either by editing or by exporting the key from a known good system and importing the key into this system.
Darrell