Check Which Process Locked a File Using PowerShell - Resolving OneDrive Sync Failures from Dependency Conflicts-How to Resolve Windows Activation Dependency Error

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.