Fix Windows Defender 502 Bad Gateway Permission Denied - Windows Terminal Freezes on Launch – Troubleshooting Guide-Configure and Clear Windows Security Cache

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