Fix Windows Update Proxy Error Permission Denied - Fix 504 Gateway Timeout in Windows Security After Update-How to Reinstall the Windows Security App (Microsoft Defender)

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