Accidentaly created the same Collectives as before

I migrated between two Nextcloud instances and I brought all the containments of the previous Collectives folder with me. I accidentally created the same collectives as it were on the previouse server and now all my files from the folder are lost and the clam-av constantly complaining about the old files.

{"reqId":"sBnMwTs8swk0MbO8ntDg","level":3,"time":"2023-11-01T04:37:16+00:00","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"Can not open for reading. File: 20830 Account: ** Path: /**/files/Collectives/**/**/**/**.md","userAgent":"--","version":"27.1.2.1","data":{"app":"files_antivirus"},"id":"6541d6533f91c"}

What to do now?