I had a duplicate issue in the past (not exactly the same) But maybe thats can help you :
Duplicates tickets when integration mail in copy - Technical assistance - Zammad - Community
I know thats not really same issue but maybe if you choose the “references” settings it would be not create duplicate ticket.
Not really sure and confident about thats but you can test it.