Hello,
I am facing a weird problem. I have a set of planer curves which are rebuilt curves from a mesh body, they have different vectors at different points(parameters). Marked in green are the problem vectors.

there are for sure many ways to correct this, all is needed is to flip the curves whose vector is pointing in the wrong direction (the ones circled in green in your screenshot)

but because those curves come as sections between a mesh and planes, my best suggestion is not to correct the definition at this point, but to make small changes earlier, where those curves are created
I say this because of the data structure, and also because it might be as easy as somehow switching a Boolean

All these curves are closed and somehow every single curve has two vectors (supper strange). I assume they have a torsion in them, which I need to solve.

I think Iβm not really understanding what you are after in particular, Iβm not understanding what you are trying to measure using the perpendicular frames

The white arrows represent the twist in the curve which should not be present and because of this, the vectors flip at different parameters ( in red arrows).

The curves are planar, meaning the torsion is zero. That third arrow (Z component of the frame) is supposed to be pointing to the direction the curve twists towards. So, tere is no way to fix it. Just take the βXβ and βYβ of the frame and construct βZβ from scratch using the CrossProduct component.