hello @04i welcome back in the forum
Please use the search this question was asked lot of times already.
- You must upgrade one version at time.
- The right procedure to upgrade your Docker installation is here GitHub - nextcloud/docker: ⛴ Docker image of Nextcloud
- recovering from from multi-version upgrade was often discussed, here is one reference I found solid: Adding feasibility check for updates before replacing the nextcloud files · Issue #617 · nextcloud/docker · GitHub