Sorry to hear about your troubles. It can be a number of things depending on the location. If it is withing the eyelid itself, the most common problem is a style/chalazion. These are usually treated with warm compress to allow them to self drain since it is caused by blocked oil glands within the eyelid. Sometimes a combination steroid/antiobiotic cream may help. Once the bump has resolved, then it is recommended for you to continue warm compresses and lid scrubs to maintain hygiene of the eyelids twice a day to prevent future blockage of oil glands.
Another possibility may be a cyst. These can go away on their own but usually recur when the fluid builds back up. Treatment requires excision of the cyst.
A blocked tear duct is another possibility as well. Tears normally drain from the inside corner of your eyes down to the nose (that's why your nose gets runny when you cry). Newborns commonly has this blocked, but most of them will resolved. For adults, blockage can occur in the nose, and if bothersome usually needs probing by an ophthalmologist
and possibly surgery. There is a lacrimal sac between the eyes and nose. If you do indeed have blockage, it can cause backup and swelling of that lacrimal sac.
From what you've describe, it is possibly a recurrent stye or chalazion. Not a serious condition, but can definitely be bothersome.
Was the doctor you saw an ophthalmologist? I'd recommend for you to consult with an ophthalmologist. I'd be happy to answer any other questions or clarify if needed.
Thank you for your question and I wish you well.