Went through a weird phase

A little backstory. I've been with my fiance for 2 years now, first person I've ever been in love with, always felt very loyal.

But a week or 2 ago I started having these feelings that I didn't want him anymore especially sexually, I absolutely hated my life. I didn't want to be a mom or a wife anymore. I even wanted to cheat on him and I wanted to move out to my own apartment.

And then bam, yesterday everything was back to normal. I feel great and happy and would never want to give it up for anything.

I don't know if this is a mental health issue? Maybe a commitment issue or something?