Looks like the same issue as here: Internal server error after logging out and on Github: Sometimes, a user logout leads to a keycloak server internal error · Issue #11697 · keycloak/keycloak · GitHub
However there is no proposed solution at this time.