Absolutely this can be caused by anxiety!! I have had this happen on several occasions and the one night I woke up and went immediately to the ER because I was gasping for air and literally felt like I couldn't breath. That was probably one of the most scary moments I've ever experienced especially since I was sound asleep and woke up with it happening. Anxiety can do the most bizarre things to our bodies and minds. My therapist keeps telling me that every time something like that happens though and we make it through, that's another milestone and another step towards getting better. Take care