This is deep in the bowels of macOS and a question for Sam because of his knowledge of the macOS drawing stuff.
Don’t use such an old version of Xojo. That would be my first try.
Can you find out where in your code the app crashes?
And then you can try 64bit instead of 32bit.