Editor crash when updating rotation of a precreated spline

Steps:

Create a spline through Python programatically.
Select the created spline and change the rotation.
Notice that a pop up message is displayed and it crashes the editor, post that.

Code:

actor_class = unreal.EditorAssetLibrary.load_blueprint_class(‘/SplineFollow’)
actor_location=unreal.Vector(0.0,0)
actor_rotation=unreal.Rotator(0.0,0)
newactor = unreal.EditorLevelLibrary.spawn_actor_from_class(actor_class,actor_location,actor_rotation)

Add points in a for loop…
newactor.add_spline_point(pos,unreal.SplineCoordinateSpace.WORLD,True)

In the Viewport, select the generated Spline and change the rotation.

Result