Thanks for the query.
Usually ovaries can contain benign cysts like follicular cysts, corpus luteal cysts etc as part of regular menstrual cycle.
And these will usually subside soon without need of any medication.
And these type of cysts usually won't affect the menstrual cycle in general.
So the other possible causes for your problem are :
imbalance either sexual hormones and/or thyroid
-Poly cystic ovary disease, in this multiple small cysts will present in ovaries and these can lead to hormonal imbalance.
and strain or other psychological factors etc.
You once consult gynecologist and get evaluated to find out the exact cause for your problem.
And treatment can be taken accordingly.