To be clear, you’re saying that the Quality Gate fails because duplications are too high?
Can you share your analysis logs, and a screenshot of the Quality Gate failure?
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.