Change the line in nginx.conf from
add_header X-Robots-Tag “none” always;
to
add_header X-Robots-Tag “noindex, nofollow” always;
From Nextcloud v 26.0, it does not recognize "none" as "noindex, nofollow".
They are equivalent based on Nginx server manual.