Curve Frame Orientation

That component uses the local plane of the curve, which only exists if there’s some curvature. The bits where your plane goes horizontal must be fully linear.