The root cause (of addictions in general) is a subconscious reaction pattern to pleasant body sensations, a craving. It's in turn an avoidance of otherwise unpleasant body sensations when not having sugar.
So, there's no need to 'fight' sugar because it's within you. Instead becoming aware of the underlying sensations and related thoughts is key. How?
By meditation (e.g. Vipassana), Yoga (e.g. Ashtanga), Wim Hof breathing. Becoming able to objectively observe your own reaction patterns. If you accept them and consciously choose to not react, you are done with it for good!
Side effects are you solve a lot more than just a sugar addiction 😄