The condition in which people feel shortness of breath when they are sleeping is generally known as sleep apnea. In…