how do I fix a ERROR: Invalid Credentials

I have started getting a registration error
ERROR: Invalid Credentials
even though the username and email are correct

I can add a new user with the same credentials through the dashboard

How can I fix it so that registrations are enabled again?