CoreML Model Instantiation Crashes

Some of my users are experiencing crashes on instantiation of a CoreML model I've bundled with my app. I haven't been able to reproduce the crash on any of my devices. Crashes happen across all iOS 18 releases. Seems like something internal in CoreML is causing an issue.

Full stack trace:

Ok I'm able to reproduce on an iPhone XR running iOS 18.2, and I see some logs printed before the crash:

Invalid layer: Tensor dimensions N1D1C1H1W43844 are not within supported range, N[1-4096]D[1-1]C[1-65536]H[1-16384]W[1-16384].
Invalid layer: Tensor dimensions N1D1C1H1W43844 are not within supported range, N[1-4096]D[1-1]C[1-65536]H[1-16384]W[1-16384].
Invalid layer: Tensor dimensions N1D1C1H1W21922 are not within supported range, N[1-4096]D[1-1]C[1-65536]H[1-16384]W[1-16384].
Invalid layer: Tensor dimensions N1D1C1H1W21922 are not within supported range, N[1-4096]D[1-1]C[1-65536]H[1-16384]W[1-16384].
Invalid layer: Invalid input tensor channel 1 and format size 2 bytes, must be aligned on 64 bytes
Invalid layer: Invalid input tensor channel 1 and format size 2 bytes, must be aligned on 64 bytes
Invalid layer: Invalid input tensor channel 1 and format size 2 bytes, must be aligned on 64 bytes
Invalid layer: Invalid input tensor channel 1 and format size 2 bytes, must be aligned on 64 bytes

The input shape of the model is 1x43844x1. Model loads fine on an iPhone 15 Pro. Does iPhone XR not support this input shape?

CoreML Model Instantiation Crashes
 
 
Q