Bezier Curve for some reason seriously messing up
You can enable viewing the curve's normals in edit mode using the overlay dropdown.


If your curve is twisted, this will show up clearly in the angle of the normals:

Unfortunately the only way I know to fix it is to select individual control points and either change their vector type to automatic (by typing VA) or by rotating the control point until the alignment looks good.