Fix 'git remote origin already exists' Error in GitLab - Fixing Node.js Heap and Stack Errors-Git Detached HEAD Commit Recovery Guide

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.