Help me with my panic attack during meditation
I would recommend learning &amp; practising meditation in a group, that has a competent teacher or monk, so you can learn to become fluent in the basics of meditation. 

As for your panic attack, it sounds like your mind was focusing more &amp; more on the space, thus lengthening the gap of the space &amp; shorting the duration of the breathing. 

Therefore, not only did your mind lose a soothing, comforting &amp; calming sense object (the breathing) but also found itself in a state of 'emptiness' ('diminishing ego') that it could not cope with; thus fear or panic arose; which is similar to a fear of 'death' people commonly feel. 

Ultimately, correctly practised Buddhism meditation should 1st develop a strong foundation of calm, which gives the mind refuge &amp; strength to develop more profound insights. 

Where as "space between breathing" (emptiness) meditation is taught by ambitious teachers who foolishly believe they will enlighten students more quickly.

The real Buddhist meditation path is something gradual &amp; natural and based on giving up desire (craving) &amp; positive &amp; negative judgments (rather than based on exercises designed to eliminate the 'ego' or 'self' prematurely; when the mind is not yet ready or spiritually mature enough).