I have bad leg pains with bilateral ovarian cysts with constipation, what could it be?

These may. All be separate problems. Need details of history to help. I would make appointment to see your doctor to sort things out. You can take Motrin or alleve for leg pain and stool softeners or laxatives for constipation.