Truststore certificate login failed to redirect url getting error

we are using keycloak as a authentication service in our organization. we are able to login to keycloak using userid and password but there is problem logging in when i am using truststore cerificate base login.When i am using Truststore certificate base login first it is showing the error page and then login to the user automatically. please find the below attachment which shows the error message.

we are using keycloak version-21.0.1