Can weight loss/gain be a reason periods last more?

Natasha

So before I use to gain and lose weight like crazy also with stress, and my periods use to last 2 weeks or even A WHOLE MONTH. It ended up still being irregular but only lasting 6-7 days . I’m On day 8 and still light bleeding . 😪