Muscle spasm upper diaphragm? Pregnancy symptom?

Sometimes when I’m sleeping or laying down my stomach has started to spasm on the upper part. Is this a common issue? Maybe it’s due to something else... 🤔