Here are some quick tips mentioned in this guide to fix the 'Duplicate Ownership for Directory' error on Windows.
Here's a guide that explains what is SFC Scannow command and how to use it in different versions of the…