It seems like you have GERD or acid reflux.
Its main symptoms are heartburn (a burning pain in the middle of the chest), acid regurgitation (stomach acid reaching up the esophagus and even throat), and nausea.
It is common to have more prominent symptoms when you lay down since the gravity (protective mechanism for acid reflux not to occur) is absent.
Attacks of acid reflux tend to be more severe during nights (swallowing is absent, saliva production is decreased, both protective mechanisms).
You should avoid certain foods that can trigger an attack of acid reflux, eat you meal at least 3 hours before sleep, and try to sleep with two pillows to have your head more elevated).
A gnawing or burning stomach pain just below the breast bone can be experienced.
Chest pains are additional symptom, too.
IBS and acid reflux, can be present at the same time, but not related.
In some cases it is possible that they have been both triggered by stress.
IBS is manifested with cramping abdominal pain, alternated bowel movements, abdominal bloating.
Best wishes!