Fix Windows Defender 502 Bad Gateway Error: Configuration Guide - Fix Windows Security Real-Time Protection Slowdown-Reduce Windows Defender CPU Usage via Registry

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