Hello. I've faced an issue off and on, but seemingly getting more frequent, where pdfsizeopt produces output that Acrobat Reader doesn't like. In some cases, certain contents do not render and in others entire pages get lost. (Note that I can't guarantee that these two symptoms come from the same bug.) In either case, Reader reports the error message, "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem."
Attached, please find a test PDF that I've extracted from a larger PDF. In this case, running pdfsizeopt on Windows 10 with the command "pdfsizeopt.exe --use-image-optimizer=sam2p,jbig2" produces the attached corrupt output. One image does not render (Reader version 2022.003.20322). I have what I believe to be the newest Windows pdfsizeopt files, downloaded just a few days ago. Thanks!
test.pdf
test_corrupted.pdf