Are you "stupid"... Well that all depends dosent it... Are you mentally deficient, as in scoring low on a standardized IQ test? I doubt it. You type well and are coherent.
are you stupid in the way love and feelings of affection and attachment make people? Yep. But then it happens to all of us....
if you were being told your story by someone else, what would you say? See the forest and not just the trees in front of you...
you already know the answers and you know whats best for you, its just hard to accept and hard to follow through on.
Nobody here can do anything for you of make choices for you. You and you alone are responsible for your life course. Make it the best it can be.