Per https://help.nextcloud.com/t/dnspinmiddleware-php-error-in-the-log/197545 , maybe the DNS error can be ignored.
The issue seems to be that connection to LDAP server is lost though. Can you check if box code is repeatedly crashing ? Can you check for errors in /home/yellowtent/platformdata/logs/box.log ?