welcome to health care magic family,
you got often are if on the both eyelids,there may infection of routes of hairs of eyelids affecting one by one hair producing recurrence of boils,some times may produce cysts,which remains permanently .
do one course.
of antibiotic and anti inflamatory medicines
if afterword it persists you consult eye specialist.
there is no relation with thyroid