Fast heartrate after taking nap!

Hey everyone!

I just really want to ask if any of u know.

When i took slight nap around 45 min and waking up i felt heart rate is fast and my heart was pounding a bit crazy for a bit and im 38 weeks pregnant and i felt like my baby had fast heartrate as well at the same time but went back to normal after minutes.

Should i be concerned?

Scared even taking naps lol