Unfortunately, I don’t know what else you can try. What should work in any case is a manual upgrade. But make sure you have backups before you start. Since it’s running in a VM, it’s best to backup/snapshot the whole VM, then you can easily go back to the previous state if something goes wrong…
https://docs.nextcloud.com/server/latest/admin_manual/maintenance/manual_upgrade.html