Windows Defender 502 Bad Gateway: Troubleshooting Checklist - Stop Windows Defender Scans After Disabling Real-Time Protection-Microsoft Store Won't Open After Update – Troubleshooting Guide

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.