Hi Discombobulated,
Yes, I have experienced this as well. Some things that have helped me are counting and/or journaling. I’ve also used a guided meditation I found on the Tubi app: the meditation.guide: nightly loving kindness meditation. I hope you find some relief, the night time panic attacks really are quite frightening.