Birth control problems

So I just out of the hospital because I had an ovarian cyst rupture. The hospital ob said it was caused by my birth control. However I’ve never had a history of ovarian cyst, however the woman in my family do. I informed my boyfriend and he’s totally fine with with me being off the pill. The point of this was just be aware of what you are putting into your body.