A Generic Error Occurred in GDI+ and Missing IWarningCallback Handling

I’m seeing the following error when converting a slide to pdf with Aspose.Slides 23.8 on Windows:

System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at mage , Stream )
at mage , Stream , Single , Single)
at tream )
at tream , )
at .( , )
at .( ,
at .( , Boolean )
at .( )
at .( )
at .( )
at .( )
at .( )
at .( )
at .( )
at .( )
at .( )
at .(
at .(Boolean , , Boolean , )
at .( , , Boolean , Boolean)
at .( )
at .( )
at .( )
at .( )
at .( )
at .( )
at .( )
at .( )
at resentation , Stream , Int32[] , PdfOptions, InterruptionToken )
at resentation , Stream , PdfOptions , InterruptionToken)
at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
at Aspose.Slides.Presentation.Save(String fname, SaveFormat format, ISaveOptions options)

Unfortunately I cannot share the file in question, but my main question is why is this not raising a Warning call in the IWarningCallback instead of throwing and failing? Isn’t that the expected use-case for the interface?

@rafaeloliveira,
Thank you for contacting support.

The exception was thrown because an expected case occurred. It will be great if you share the sample presentation and code example to investigate the case on our end. We apologize for any inconvenience.