How do you all deal with monthly mood swings?

I am sometimes crying for no reason a day or two before I’m supposed to menstruate. I can understand why it’s happening, but it feels so God awful. I am reminded of the shittiest things in my life, which don’t seem as shitty the next day.

Physical pain I deal with chocolates and a rom com, but this mental pain often makes me do stupid stuff like text my ex. I have even cried rivers in front of my family members while also laughing a bit and explaining them how I go mental one day a month. They usually don’t say much, just listen to my messy rants.