Unhealthy patterns will keep repeating themselves unless we choose to stop the cycle. There are some good books that can help sort through things and help bring clarity. Just a few that come to mind are, "Women That Love Too Much", "Codependent No More", "The Language of Letting Go".
The only way to 'resolve' the situation is to break the cycle. dewey is right on the money. Not necessary to break the relationship, but the pattern of behavior is unacceptable and not healthy for the OP or children involved.