The swelling could be sebaceous cyst
,which occurs in hairy areas.
It is better to get it removed completely by a surgeon.incomplete removal may lead to recurrence.
If it is removed,there will be no headache.
It has no relation to stomach pain.For stomach pain,i prescribe Rabeprazole
tablet with anti spasmodic Dicyclomine
Wish you speedy recovery