How many duplicate objects are there. Because it might be possible that warnings such as:
Highlighted Walls overlap
Highlighted Floors overlap
Highlighted Lines overlap
Can cause duplicates.
I think it is also possible to extract the faulty element ids using BIM interoperability tools. Which gives you the ids of the elements causing the error. you can then use these ids incombination with Dynamo to find the faulty elements and their location.
So you can do 2 things:
check if BIM interoperability tools counts Overlaps also as duplicates, if so, you can use the Warning nodes as mentioned before
or extract the Element ids using BIM interoperability tools for the duplicate elements and retrieve them using Dynamo.
now you have somewhere to start, because I doubt there will be someone who is willing to write this all for you.