I am familiar with the two extremes. In the beginning, I often am extremely distant. Then when they get distant, I get very emotionally attached. When I was "younger", I also had the tendency to develop a crush on people who weren't really worth me.
It's difficult to give advice on that one, because emotions can be such a stubborn thing and not listen to reason. Nevertheless, it would be a good idea to train yourself. What are you looking for in these men? What are you in need of? Comfort, consolation, encouragement, support? Things that you did not get as a kid maybe?
When you have an idea of what you are looking for, then the thing is for you to realize that these men can never give you exactly that. Most of the things you seek, you're going to have to develop for your self. Your own strength. Your own ability to forgive yourself or encourage yourself. All people like a person who has found those things in his or herself.
It takes a long time. To cultivate these things. But it is possible.