Using multiple browser tabs I am not able to login after opening a third tab

Using keycloak version 18, and login with one user in one tab after opening a second tab the user get automatically authenticated, but when openning a third one it is failing with the error “CODE_TO_TOKEN” → "Code ‘%s’ already used for userSession ‘%s’ and client ‘%s’. "