Fix Python Memory Errors When Processing Large Files - Fixing Python UnicodeDecodeError with latin-1 Codec-Nginx Config Test Failures: Top Causes

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