Hi!
is your UCS joined to a windows AD?
Has it worked before and then stopped working?
I am trying to setup a new nextcloud and got a quiet similar error message and LDAP errors in the log file
(Nextcloud internal server error first login)
regards
Michael