Yes, PDFs with duplicate keys are not allowed by ISO 32K but it would be useful to have some form of visualization to know that this may be the cause of some other error like when the keys have different values. At the moment this is invisible...
Example PDF: https://assets.devoted.com/plan-documents/2022/DH-DisenrollmentForm-2022-ENG.pdf
Object 19 has 2 keys /h.32tc8hbyo16k but with different values - AFAICT RUPS chooses the last key in the dictionary