Locate the duplicate images

Because you use a Managed Nextcloud you can only use the included features of the Nextcloud and the client features e.g. Nextcloud desktop or WebDAV.

I think the best way is to delete all pictures in the Nextcloud and upload them again.