I also have the same error, my HOMEDRIVE and HOMEPATH seem to be correct, However, when i type bash my WSL is start not the msys2 bash. I also have msys path in my environment variables so I can use certain packages natively so this could also be causing issues. Any suggestions?