Some patients may have coughing spells when they lie down. This is caused by acid juices flowing back up the esophagus then down into the lungs through the breathing tube. Coughing can help expel gastric juices from the lungs.