Your ovarian pain could be any number of things. If it happens in the middle of the month, you could just be ovulating. If it happens during your period, it could just be cramping in the general area. But, if it happens when you are late or just before your period, it could be an ovarian cyst.
They don't do a lot for ovarian cysts, other than giving you a diagnosis and possibly putting you on birth control pills to stop ovulation completely.
If they diagnose you with polycystic ovarian syndrome, they might choose to treat you with metformin, a diabetes drug, but you must meet other criteria like impaired glucose metabolism, weight gain, higher than normal testosterone levels, and infertility. It's really an endocrine disorder. I was diagnosed by a reproductive endocrinologist when I had difficulty getting pregnant.
Btw, I'm not giving medical advice. This was just my experience. There may be other causes of ovarian pain.