Fix Windows Update Login Loop Using Safe Mode - How to Resolve PowerShell Exit Code 0xc0000005-Resolve BitLocker 502 Bad Gateway Setup Error

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