Why does my Spline Static Mesh Flips awkwardly?

Im working on a procedural spline BP where the spline is generated via Add Spline Points. But upon adding the Static Mesh to the spline, it appears to flip awkwardly like the images below

Screenshot 2023-04-18 205652
Screenshot 2023-04-18 205716

Below is the code that manually ‘draws’ the spline points in an array

Below is the code for adding static meshes


Any idea why this is happening? Would really appreciate some help