Finally figured it out.
First, in Git Bash check if your $USERNAME variable is corrupt by echo $USERNAME
If its broken, it's as simple as export $USERNAME </path/to/username>
Also, since you're on windows 11 you might want to check the env variables in windows and see if you have set the correct value for user profile in user variable tab