You don't have a bad relationship with food
You have a relationship with yourself & that dictates your behavior around food.
Those behaviors are healthy or unhealthy, not the food
Your body follows where your mind goes, so until you deal with your mind your goals will be impacted by your thoughts