That means we either have both broken configs or there is indeed a bug in nextcloud causing 404 errors
I think you're right. I have errors in Nextcloud on my system since I updated to version 28 of Nextcloud. There are several related threads on the Nextcloud forum and on github.