How to Fix Windows Defender Cannot Connect Issue - Fix Windows Security 502 Bad Gateway Sync Error-Resolve Windows Search Authentication Failed Issue

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