Chest pain?

I have anxiety and last night it was really bad for a few hours before I went to bed. I've only had panic attacks maybe twice in the past but it wasn't that.

But I got this sharp pain in my chest by my lower left ribs like just below them. It happens when I move or breathe oddly I guess. But when I went to bed I couldn't lie on my left side without it hurting on every breathe. And on my back it still hurt too.

This morning its back to happening when I breathe or move sometimes.

Just wondering if the two are related. Like my anxiety last night managed to pull some sort of muscle or something? Has anyone else experienced similar?