How long will pain last after having an ovarian cyst rupture?

Variable. People have different responses to pain and cysts can have blood or simple fluid. Let's assume you never have pain and it was a "simple"fluid filled cyst; generally a week or two. Many go unnoticed and consider the pill. They can help avoid future such issues; good luck, I hope you feel better soon.
A couple weeks. Pain should get gradually less overtime. Hang in there.