Keycloak and OKTA as external IDP(OIDC) error invaid username or password

Hi,
We configured keycloak as identity broker with OKTA as external IDP with authorization code flow. When user logs in using their OKTA credentials, okta sends an authorization code back to Keycloak. In the Keycloak logfile it shows the following exception

ERROR [org.keycloak.services] (executor-thread-191) KC-SERVICES0068: Not found serialized context in clientSession under note ‘BROKERED_CONTEXT’
WARN [org.keycloak.events] (executor-thread-191) type=“IDENTITY_PROVIDER_FIRST_LOGIN_ERROR”,
The following error message is shown in the console: -
“Invalid username or password”
First login flow:-