Fix Windows Security Not Opening or Running Slow - Windows Defender 504 Error: Gateway Timeout Fix Guide-Troubleshoot PowerShell by Deleting Profile 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.