Fix Windows Update 504 Gateway Timeout Related to Firewall Settings - Troubleshooting Windows Security Service Failures on Windows 10-Troubleshoot 0x80070005 by Resetting Windows Update

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