SchemaException: An index with name 'authtoken_uid_index' was already defined on table 'oc_authtoken'

Nextcloud update issue
while updating the next cloud, the following error occurs

Doctrine\DBAL\Schema\SchemaException: An index with name 'authtoken_uid_index' was already defined on table 'oc_authtoken'.

The log report for the same is
{"reqId":"8vAkBnfM6Rf1kZpNWAC4","level":3,"time":"2020-12-13T17:34:00+00:00","remoteAddr":"115.97.44.121","user":"--","app":"updater","method":"GET","url":"/apps/core/ajax/update.php?requesttoken=lN%2BvOdyjypzEssUSzeOpe%2FW4hhAs5yQjMhdYLYaDW%2BE%3D%3A5pKbXoyIr9qc3epF%2FYjDTLD8%2F2lIkVYbBiNzV9T2IbI%3D","message":"\\OC\\Updater::failure: Doctrine\\DBAL\\Schema\\SchemaException: An index with name 'authtoken_uid_index' was already defined on table 'oc_authtoken'.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 OPR/72.0.3815.400","version":"20.0.2.2"} {"reqId":"8vAkBnfM6Rf1kZpNWAC4","level":3,"time":"2020-12-13T17:34:00+00:00","remoteAddr":"115.97.44.121","user":"--","app":"updater","method":"GET","url":"/apps/core/ajax/update.php?requesttoken=lN%2BvOdyjypzEssUSzeOpe%2FW4hhAs5yQjMhdYLYaDW%2BE%3D%3A5pKbXoyIr9qc3epF%2FYjDTLD8%2F2lIkVYbBiNzV9T2IbI%3D","message":"\\OC\\Updater::updateEnd: Update failed","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 OPR/72.0.3815.400","version":"20.0.2.2"} {"reqId":"8vAkBnfM6Rf1kZpNWAC4","level":1,"time":"2020-12-13T17:34:00+00:00","remoteAddr":"115.97.44.121","user":"--","app":"updater","method":"GET","url":"/apps/core/ajax/update.php?requesttoken=lN%2BvOdyjypzEssUSzeOpe%2FW4hhAs5yQjMhdYLYaDW%2BE%3D%3A5pKbXoyIr9qc3epF%2FYjDTLD8%2F2lIkVYbBiNzV9T2IbI%3D","message":"\\OC\\Updater::maintenanceActive: Maintenance mode is kept active","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 OPR/72.0.3815.400","version":"20.0.2.2"} {"reqId":"8vAkBnfM6Rf1kZpNWAC4","level":1,"time":"2020-12-13T17:34:00+00:00","remoteAddr":"115.97.44.121","user":"--","app":"updater","method":"GET","url":"/apps/core/ajax/update.php?requesttoken=lN%2BvOdyjypzEssUSzeOpe%2FW4hhAs5yQjMhdYLYaDW%2BE%3D%3A5pKbXoyIr9qc3epF%2FYjDTLD8%2F2lIkVYbBiNzV9T2IbI%3D","message":"\\OC\\Updater::resetLogLevel: Reset log level to Debug(0)","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 OPR/72.0.3815.400","version":"20.0.2.2"}
The table structure is
# Name Type Collation Attributes Null Default Comments Extra Action 1 idPrimary bigint(20) UNSIGNED No None AUTO_INCREMENT 2 uidIndex varchar(64) utf8_bin No 3 login_name varchar(64) utf8_bin No 4 password longtext utf8_bin Yes NULL 5 name longtext utf8_bin No None 6 tokenIndex varchar(191) utf8_bin No 7 type smallint(5) UNSIGNED No 0 8 remember smallint(5) UNSIGNED No 0 9 last_activityIndex int(10) UNSIGNED No 0 10 last_check int(10) UNSIGNED No 0