Hi, Welcome to HCM, I am Dr. Das
From your history i think you are suffering from ovarian endometriosis
. That is presence of menstruating tissue in ovary, which is not normal.
What is your age? Have you completed your family?
If you are in lower age group it is necessary to treat you by surgical treatment
. Because it will hamper fertility
But if you are in older age group medication can be tried.
There is no definite cause of white discharge in this case.
And moreover, white discharge is not the problem. the problem is Endometriosis.