Folder permission loophole with Nextcloud installation

The snap runs as confined root. Try sudo chown -R root:root /mnt/nextcloud/data.