Nextcloud update to 23.0.1 fails

When I visit my nextcloud instance, I get a message saying Nextcloud will be updated to 23.0.1 . I click install and then after a while, the install fails and returns the following error message:

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

Any ideas on why this happens or how to fix it?

Apparently a simple restart did the trick!