Fix Microsoft Store App Installation Errors on Mac - Troubleshoot Microsoft Teams Setup Timeout 504-PowerShell Error 0x80070002: Fix Login Loop

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