Thanks for your query. These anxiety
attacks you are describing are referred to as "panic attacks". They can be effective treated with anti-anxiety drugs like SRRI's or SNRI's as well as psychotherapy
(eg cognitive behavioural therapy). Hence, i would suggest that you need not lose hope and undergo a thorough re-evaluation by a psychiatrist
and start appropriate treatment.