you need to downgrade your install change the respository yo "linuxserver/nextcloud:140" and it will downgrade it. then you will need to manually upgrade next cloud to v13 and then remove the ":140" part and upgrade and you will be fine.