Worried he doesn't find me attractive anymore

Iona

So we've been dating almost 3 years now but I'm worried my boyfriend doesn't find me attractive anymore. I've been pretty skinny all my life and not had many issues with body confidence but the past 2 years I got really stressed with university and I've gained about half my original body weight. I feel super insecure all the time and avoid looking in the mirror cause I think I look gross. He still compliments me but occasionally when changing position during sex his dick goes soft and we have to stop. He says it's because he's tired but I'm worried he just says that to not hurt my feelings. Has anyone had similar problems or am I just being stupidly insecure?