Maximum number groups & IDP mappers in Keycloak

I have 3 groups per entity in keycloak within same realm.
I am doing stress test where I have created 10K groups considering 3k entities.

Groups are added for 3K entities but OIDC token endpoint is failing as it seems Keycloak not able to figure out required groups for the given client user login?

Any idea what is maximum groups we can add in keycloak?