Sorry if tmi

A few times a year I get this excruciating sharp "pain" In my anus. It's quick and just last a few seconds and it's like a painful ache. Anyone know what this could be?! It doesn't happen often so I never remember to ask the Dr.