Be sure to version your encrypted file, if it becomes corrupt (a single-bit shift is enough), then it will sync-overwrite your file and all passwords are lost.
Nextcloud takes care of versioning for me but I've also configured my clients (at least those that support it) to create a backup before modifying the database.