I did read that issue, but I am not sure how to benefit from the script they referenced.
That appears to be a change that was merged back in December: fix(ldap): Explicitly test created config by artonge · Pull Request #837 · YunoHost-Apps/nextcloud_ynh · GitHub
I guess I would think if that was the fix, I would already have it.
Edit
I didn’t see the edit to your post, hang on one sec while I try that.
Edit 2
There is no output when I run this, but unfortunately the update still fails afterward. https://paste.yunohost.org/raw/jilogenuxu