This happens because a rare combination of the spline and the surface, which causes than banking angle in the marker position is rotated, with Z pointing down.
Unfortunately we cannot find a way to fix it for all cases.
In case that someone has the same problem, the workaround is to add a Transform node with Deform->Override Banking = 0.