According to your symptoms and duration, might be suffering from haemorrhoids and the hard like lump you feel is what we call hemorrhoidal skin tag. Please go for an offline consultation for proper local examination and I will provide you with some general advice follow them till you get yourself checked.
Next Steps
Take a warm sitz bath twice a day
Don’t exert too much pressure while defecating
Reduce spicy food consumption
If alcoholic better to avoid alcoholic beverages
If known gas problem take medications regularly
Health Tips
Don’t neglect this condition as you can have a bleeding episode while defecating and can go unconscious if heavy bleed