Sharp stomach pain?

I’m 21 weeks. I just woke up from a nap with really sharp stomach pain. The pain is not low and my baby feels fine, no bleeding or anything like that and he’s been kicking fine all day. But this is a sharp pain up top where my stomach is and idk why I’m feeling it. I took two tums cause idk what else to take but its not gas or heartburn or bloat or anything I normally get. And it’s definitely not morning sickness which I barely had any of and had been gone for months. It’s hurting and making me feel nauseous. What can I do to get rid of the pain?