I had the same Firebase Error: "HTTP Error: 401, The entered credentials were incorrect" when I was authenticated with the wrong Google account.
I did firebase login --reauth
and logged in with the right account.
After that, the project was successfully deployed.