I wake up in middle of night to a strong onion smell this has been going on for two nights and I would like to know why or what is wrong

Esophageal reflux. It probabely is gastro esophageal reflux causing regurgitation of acid when you are sleeping onion smell may be related to the food you ate you can try Prilosec over the counter and if it still persist see your doctor.