I don't know your age or general health, but you must have a workup to make sure these are not cardiac pains and not just assume they are gas. This is not a typical sign of anxiety as a solitary symptom, and certainly the fear of something really wrong can make you anxious.