Even if try to add new repository it will give error, like in following screenshots.
You can solve it with following steps:
- Remove affected tokens
The database may have affected key you need to take backup of data of this table and delete the records with following query. - Add new repository
Now you can add new repository without error
Hope it solves your problem. You may comment your problem as well. I faced some other issues as well which I solved but forgot to take screenshots.