KeyCloak Error During Invalid User Creation

Hello,
We got KeyCloak working in our system with creating and deleting groups/users. However, the keycloak extension throws an error during the user-creation process when something goes wrong (e.g. a username was provided that our system does not accept), and keycloak continues to create the user anyways, despite the fact that there was an error. We don’t want keycloak to continue the process. Is there a way to make it so it stops?

Thanks