There is no certain preventative measure for sebaceous cysts. They can arise even if the sebaceous glands suffer from minor trauma. Or they may not arise at all even if the ducts are damaged or blocked. Thus, you cannot do anything to prevent the cysts from developing. Moreover, they can also occur at any age. The only possible thing you can do is visit a specialist the moment you notice the lump.