Body Shame

I am currently gaining weight because I was diagnosed with an eating disorder. Although I know that gaining weight is necessary for my body to recover, I can’t stand the negative voices in my head evaluating my weight gain. My thoughts around weight gain is that I am less attractive and men don’t feel attracted to me anymore when gaining weigth. How can I approach this?

Many thanks