Maybe you have asthma, i developed it in my mid 30s, sounds like your describing something called shallow breathing but a step further, it's like you kinda forget to breath at times.
I've suffered this a few times it's pretty scary and i'm sure it has a name.
Many things can trigger asthma and lying down to go to sleep is one of them.
But to recap, indeed it's like your body loses the innate ability to just breath normal, to even breath at all.
I do well with my inhaler, it's the purple one with steroids.
Try looking into this phenomenon, a google search on 'forgetting to breath' or some such should point you in right direction.
It only happens this condition when sleeping or trying to get to sleep, as far as i know.
I've suffered this a few times it's pretty scary and i'm sure it has a name.
Many things can trigger asthma and lying down to go to sleep is one of them.
But to recap, indeed it's like your body loses the innate ability to just breath normal, to even breath at all.
I do well with my inhaler, it's the purple one with steroids.
Try looking into this phenomenon, a google search on 'forgetting to breath' or some such should point you in right direction.
It only happens this condition when sleeping or trying to get to sleep, as far as i know.