How to stop searching for user found in LDAP with higher priority?

Hello

I am using several LDAP connections to Keycloak.
One problem is that sometimes the connection to an LDAP server is unstable.
For example, if I have LDAP servers named A to E and the connection between Keycloak server and C becomes unstable, I cannot search for users in Keycloak.
When I checked the log, Keycloak found a user in A, but since then, it has been looking up users in all LDAPs of B~E.
Meanwhile, Keycloak fails to communicate with C, occurring in a java.net.UnknownHostException error.
I want to stop searching further when the user is searched in A.
Is there a way to solve this problem?

Thank you