Curve modifier doing weird things

I’m trying to make an arrayed pattern follow a curve. I’ve done it before no problem, but now my mesh is getting weirdly distorted along certain segments of the curve. What is causing this?


It’s caused by the curved mesh being too far away from the curve.

Ensure curve and arrayed object have the same origin and the scale/rotation has been applied (Ctrl+A)