TMI! Help!

Okay so this is embarrassing af but sometime when I have to pass gas or go #2 I'll get extremely sharp pains in/near my anus and it's almost crippling and i can't pass anything until the pain is gone. It goes away within a minute or two but it happens quite frequently. Endometriosis runs in my family and I heard the might be a symptom. Anyone with Endo experience this? Is this something I should go to the doctor for? I don't have insurance atm so wanting opinions before I go into more debt at 19 😂😂

Thank you guys!!