Does anyone else have experience with sebaceous cysts?

Like once or twice a month I will find a hard cyst on my outer labia, they’re not painful or anything unless I press hard on them but they’re still annoying to have. I was wondering if anyone has advice on how to avoid them. Should I stop shaving, should I stop wearing tight pants, etc. And how do I get rid of it?