please use search function of this forum, likely you are not the first user experiencing a problem. e.g.
as described in the docs you can migrate OwnCloud 10.0.5 (and later?) to Nextcloud 20.0.5. You can use docker if you don’t have real system with such old NC release. later upgrade following regular NC upgrade procedure…