Know when your PC can not self-correct and update in windows 10:
In 'Settings', 'windows update', 'Troubleshoot' then 'windows update'
Even after repair, the repeated execution of the repair utility always appears:
'database error potentially detected'
Here is the fix which may not work all the time :
https://support.microsoft.com/fr-fr/help/10164/fix-windows-update-errors