Not able to view details for some LDAP users from the users tab

I have federated the LDAP for the backend users’ data, While opening the complete details of a single user from keycloak users tab, it is getting like as follows:

This is highly hitting my production.

I noticed that the users whose details are showing in the Users tab are working fine for 2FA for other users where I am getting the above error, they are facing errors while authenticating with 2FA without 2FA the auth is working fine. The error there are getting is we are Sorry An internal server error has occurred

Please help here really stuck and waiting for some help.