Solution:
Root Cause: Corrupted XML Update Metadata Manifests
Windows Update relies on structured XML manifests stored within the datastore to catalog applicable updates. If XML parsing buffers encounter malformed syntax or truncation due to disk write interruptions, the parsing engine throws memory exhaustion exceptions when attempting to load index trees into RAM.
Diagnostic Verification:
Inspect C:\Windows\SoftwareDistribution\DataStore\Logs\edb.log for database page corruption or allocation error codes.Step-by-Step Fix:
1Stop Windows Update Services:
Open PowerShell as Administrator:Stop-Service -Name wuauserv2Delete DataStore Database File:
Remove the corrupted database index file:Remove-Item -Path "C:\Windows\SoftwareDistribution\DataStore\DataStore.edb" -Force3Restart Update Service to Regenerate Index:
Start-Service -Name wuauserv4Trigger Manual Update Scan:
Run UsoClient startscan to rebuild the metadata database cleanly.Prevention & Long-Term Monitoring:
Ensure stable power delivery and regular file system health checks using CHKDSK.