Hi, white bump, not painfull, and cleared by its own, means that it is a viral infection, probably herpes
So i advise you to consult a dermatologist
for diagnosis and treatment.
To prevent the reinfection, you should be healthy, take more of green leafy vegetables, pulses, sprouts, and protein rich foods. Thank you.