Hello,
Do you get recurrent styes or chalazia? Styes are painful while chalazia are painless. Recurrent styes can be due to frequent eye rubbing, which can in turn be due to uncorrected spectacle power. Have you got examined for that?
Next Steps
Try hot fomentation with warm cloth for swelling.
Get checked for glasses.