How to quit self-sabotage

I always quit jobs and I cannot start a relationship that’s about to begin.

It’s like, something good is about to happen, and then suddenly, I get sick so I quit the job or the guy lost faith in me (I don’t know but I am always hard to get) without really knowing it. Or if I know, I just don’t know how to open up.