Hello mam, the pain was probably due to that cyst only and most probable reason usually is dermoid cyst
undergoing torsion. I would suggest you to get a Doppler study done to see for torsion. If its clear then size of cyst needs to be followed which if increases or similar symptoms recurr I think you will have to get it removed surgically. All the best.