this is a Gateic probelm i hd similar one sometime befor.
you need to stop anything which causes acidity. this is Gastic ulcer
See your doctor, stop smoking, and eat non acidic foods only.
I would suggest seeing a doctor who specializes in digestive disorders. No one can diagnose what is wrong with you just by reading your symptoms posted here, only a doctor can.
I have 3 gastric ulcers that tend to come back quite frequently. I get severe burning in my stomach, chest pain in the middle of the night, pain down the left side of my arm, nausea and headache when they are acting up.