So it means that you have already done the upgrade before, but ended up with an error.
The files are already overwritten and the Prestashop version is also written in ./app/AppKernel.php
It is clear that it cannot upgrade one and the same version.
If you change the const VERSION, the upgrade should go smoothly.