Hi.
The way it happens (on my end) is when i remove variables that are Exposed in the inspector.
You can test this : Make a variable, check 'Inspector' remove variable.
So to prevent having more lines uncheck 'Inspector' before removing a variable.
So far i did not have any other issue from this, only the annoying lines.
Before i copied all my states and pasted them on a new fsm to remove the lines,
but when other stuff is connected to the fsms i don't recommend doing that.