How to Fix Microsoft Store Error 504 Gateway Timeout - Fix Windows Defender Token Expired Group Policy Error-Resolve Windows Search Index Hang Due to Locked File

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