Nextcloud ceases functioning as USB drive goes to "read only"

It seems similar to what happened to me
Did you try btrfs check to see what errors appear? Another user suggested that on rpi a bad power supply could be the cause