Not sure what it is

It's been for quite a few years now but not as bad as it used to be but at night my breathing always becomes heavier and I feel I really have to try and force myself to get a proper good breath. What is it? It only lasts a certain amount of time then suddenly j breath fine.... Sometimes it gets me really nervous which makes it worse too. Anyone have any ideas? Or have the same issue?