Pdf 23.7 Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

HI,
i running file is aspose pdf version 23.7 on linux and JAVA version
java version “1.8.0_241”
Java™ SE Runtime Environment (build 8.0.6.7 - pxi3280sr6fp7-20200312_01(SR6 FP7))
IBM J9 VM (build 2.9, JRE 1.8.0 Linux x86-32-Bit 20200219_440062 (JIT enabled, AOT enabled)
OpenJ9 - 3088245
OMR - eb95a4d
IBM - 83517b6)
JCL - 20200310_01 based on Oracle jdk8u241-b07

and get the next exception:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at com.aspose.pdf.internal.l7v.l1u.lI(Unknown Source)
        at com.aspose.pdf.internal.l10n.lk.lI(Unknown Source)
        at com.aspose.pdf.internal.l10n.ld.l0j(Unknown Source)
        at com.aspose.pdf.internal.l4t.lu.lI(Unknown Source)
        at com.aspose.pdf.internal.l4t.lu.lI(Unknown Source)
        at com.aspose.pdf.OperatorCollection.lb(Unknown Source)
        at com.aspose.pdf.OperatorCollection.ld(Unknown Source)
        at com.aspose.pdf.OperatorCollection.size(Unknown Source)
        at com.aspose.pdf.OperatorCollection$lI.hasNext(Unknown Source)
        at com.aspose.pdf.ImagePlacementAbsorber.lf(Unknown Source)
        at com.aspose.pdf.ImagePlacementAbsorber.lI(Unknown Source)
        at com.aspose.pdf.ImagePlacementAbsorber.visit(Unknown Source)
        at com.aspose.pdf.Page.accept(Unknown Source)
        at com.aspose.pdf.PageCollection.accept(Unknown Source)
        at Sanitization.Sanitizers.PdfSanitizer.handlePictures(PdfSanitizer.java:49)

my relevant part of the code is:

private void handlePictures(Document doc, CleaningResponse response, CleanOptions ops) {
        ImagePlacementAbsorber absorber = new  ImagePlacementAbsorber();
        doc.getPages().accept(absorber);

        for (Page page: doc.getPages()) {
            XImageCollection xImageCollection = page.getResources().getImages();
            for (int i = 1; i <= xImageCollection.size(); i++) {
                XImage origImage = xImageCollection.get_Item(i);
                    origImage.save(origImagePng, ImageType.getPng());
                    bytes = origImagePng.toByteArray();

                    if (bytes == null) {
                        logger.warning("Null image data");
                        continue;
                    }
				do somthing
			}
			try {
                    xImageCollection.replace(i, new ByteArrayInputStream(picSanitizer.sanitize(bytes)));
                    } catch (Exception e) {
                        logger.warning(e.getMessage());
                        response.setPartResult(SanitizablePart.Pictures, PartResult.Failed);
                    }
                } else {
                    do something
                }
		}

5mb.7z (2.9 MB)5mb.pdf (4.3 MB)

@paveln1234

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFJAVA-43092

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

HI Any Updates about the issue?

@paveln1234

The ticket was recently logged in our issue management system and it will be resolved/investigated on a first come first serve basis. As soon as we complete its analysis, we will let you know in this forum thread. Please be patient and spare us some time.

We are sorry for the inconvenience.

does you look at the issue?

@paveln1234

We are afraid that the ticket could not get investigated yet due to other issues logged before yours. Nevertheless, we will inform you via this forum thread as soon as we make some progress towards ticket resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.