Hi,
I am unable to produce the crash on my system using latest XMP-SDK with the same above code and PDF File you provided.
Please try using latest XMP-SDK and if any crash is still persistent kindly share the dump file of crash occurred using that latest XMP SDK.