Authorization Extension’s GET /users endpoint returns Internal Server Error (500)


We are having a problem with the Authorization extension. In staging tenant everything works good, but in production when we want to get all the users it returns a 500 internal server error. Same problem as:

When we tried to get roles or permissions it works good but with users it breaks.

Is there a chance to fix this error without having to uninstall the extension?