Usually any pathology causing breathlessness like asthma, COPD, pneumonia, heart failure, airway obstruction etc. doesn't get relieved without medical intervention.
So, you struggled for breath for 30 minutes and then spontaneously it resolved.
So, this is panic attack obviously.
However this is also a very real condition that involves our mind. It manifests through our body which is called somatization.
It needs treatment also.
Next Steps
consult psychiatrist and clinical Psychologist.