Its possible your Git authentication is invalid.
Try Git: Credential Manager or git auth login to fix the error.
Git: Credential Manager
git auth login