Who made the gracilis diagnosis?
With the switching from side to side and the sharpness of the pain, I'm inclined to think of the sciatic nerve.
Though the gracilis is responsible for adduction.

Disclaimer: But what do I know?