Compressed object is corrupt

Which product are you using?
PDF.js Express Plus

PDF.js Express Version
8.1.1

Detailed description of issue
I have a password protected pdf file, in which I am adding a custom stamp annotation and saving to a local path. For merging the annotation i am using https://api.pdfjs.express/xfdf/merge and the saved file is coming as corrupted.
getting below error,

Expected behaviour
I should be able to open/read the output pdf file with added stamp annotation and password protected as original file.

Does your issue happen with every document, or just one?
Issue only for coming for annotating password protected file.

Link to document
{Provide a link to the document in question if possible}

Code snippet
{Provide a relevant code snippet}

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hey there!

Are you able to send the document to me for testing?

Thanks,
Logan