Are you seeing a therapist and getting support and advice from a professional? We can provide that here to some extent, but it sounds like you might need more.
It's sad that people make such a big deal over weight. It could be that you have some unmet emotional needs that lead you into it. Just a guess. But, as you say, you need to break this cycle.