Fix Microsoft Store 502 Bad Gateway Error - How to Resolve PowerShell DNS Failures Post-Update-Reduce Antimalware Service Executable Memory Drain

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