Hello! Thanks for putting your query in HCM. I am a Gastroenterologist (DM).Anal fissure
is painful especially while defecation which you haven't mentioned.
I think they are 2nd or 3rd degree piles or rectal prolapse
which protrudes during bowel movement. You should get sigmoidoscopy
examination to confirm and treatment can be done accordingly
I hope I have answered your query and this will help you. Remain in touch and get-well soon