Chest pain with sweat, headache, and dizziness. Dr said it could be a ulcer in my esophagus. What can I do? I'm on meds right now

Follow instruction. I would continue med , follow your doctor instruction and follow up appropriately as you were told to do so. I t may need some time for med to work for you.