1. I should have stopped the relationship with her when...
"things had stated happening not in my favor" < This sounds a bit clumsy. Try: "...when I realised things were not going my way." "..not in my favor." would be more suitable for a situation, rather than a process; as you used "started happening", this suggests a progressive series of events, or, a "process".
2. I should have ended the relationship with her when I had sensed clouds on the horizon. > Just remove the "had", then it sounds fine.