Welcome on the forum!
If you have not fixed the issue yet, I would suggest you to trim the PCR primers instead of the sequencing adapters, which should
be following the adapter sequences in your reads (although it may depend on the library prep used).
Also, I suggest you to look at the following thread:
and add '--p-match-adapter-wildcads' and '--p-discard-untrimmed' as options!