Did you find the root cause of this issue ? It seems to be present since version 15 of Keycloak.
We got the same error, but nothing about the issue in forums or from Keycloak.
Thanks!