Fix npm run build TypeScript Compilation Errors - Fix Windows 11 Update Stuck at 0%: Step-by-Step-Resolve Node.js Heap Out of Memory During Module Loading

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