Did he actually say that?! That he wouldn’t be attracted to you if you gained weight!? That is horrible! :(
Don’t listen to him, listen to your body, and you do NOT need to lose weight darling.
If he keeps saying shit like that leave him.
I’ve been married for 20-1/2 yes, my weight has fluctuated during this period, and my husband’s answer to my question, “do I need to lose weight?”, has always been, “I think you always look great!”
Help your man to appreciate all your different looks. Tell him you need sex exercise 5 times a day, learn to belly dance and stimulate him.