Period Help!

Hi! I’ve been dealing with horrendous periods since I was around 13 years old, and now 25. Now that I look back at it, I have no idea how I’ve gotten through them this entire time. I guess I just normalized the pain and the severe symptoms? I am just so exhausted and can’t take it anymore. I am stuck on what to do because I also suspect that I have a hormonal imbalance. Do I go see a gynecologist or an endocrinologist first?