There is no way to prevent an ovarian cyst from rupturing. With that being said, if your doctor finds one during a routine exam, he or she may recommend a watch-and-wait approach to see if the cyst increases in size or goes away on its own.
If the cyst is large and already causing discomfort, the doctor may recommend laparoscopic ("keyhole") surgery to remove the growth. It is an in-hospital procedure and one that should not be confused with a cystectomy (the removal of the bladder).