anxiety attack during sleep.

so i guess i feel asleep and woke up feeling like i wasn't breathing and started panicky and so on.... like i literally felt like i was going to die ... should i get anxiety meds and pills?? for my anxiety attack before bed and during sleep ???by the way i been trying to sleep earlier ....and i feel like throwing up when i'm having an attack. i slept with my tv on cuz i was that sleepy