Giant old-messages folder

Due to a flood of NDRs, I have an old-messages folder in my mailbox with thousands of messages. Every way I’ve tried to open the folder results in a timeout. Is there a way to (1) split the folder so that I can access the messages prior to yesterday that are still in the folder or (2) delete all the messages with “undeliverable” in the subject?

Fixed using pine.