Registration page sending duplicate validation error when "E-mail as username" is selected

Hello, I have selected the option to use the E-mail as username and, as such, the Username field is no longer shown in the registration form. However, if the e-mail is empty, a duplicated validation message is shown, which also sazs that the Username needs to be filled in:

If I write something in the E-mail field, then the username error dissapears. How can I make Keycloak ignore the first validation error?

I also have a validation SPI for a custom field (not shwon in this screenshot) that appends an error if said field is not filled in