It seems that your credential manager stored wrong authentication and reuses it. Reset it.
git config --system --unset credential.helper
More information:
Remove credentials from Git
GitLab remote: HTTP Basic: Access denied and fatal Authentication