Hm, this is weird. Can you run sudo docker stop nextcloud-aio-database; sudo docker rm nextcloud-aio-database; sudo docker image prune -af and afterwards try to restore the backup again and start the containers back up?
If it still doesnt work, please post the database container logs again.