Share Token is not unique

As a result of a user leaving and user account being removed, we lost a large number of share links. Most likely related to this

After much frustration, we decided to resort to the manual labor of recreating all the hundreds of share links again. But unfortunately, Nextcloud gives error “Token is not unique”

At the same time, accessing the old links results “Page not found

How should we continue?

I tried

occ sharing:list -t xxx

It outputs just

Nothing more. It does not result in error

In Manager.php line 1452:
The requested share does not exist anymore