Thanks for writing your query.
can result in feeling of discomfort due to excess gas production but it cannot result in vertigo.
You should get a scan of your head done along with X-Ray of neck and ENT checkup to know the cause of vertigo. Also get an ECG and get your blood investigated for hemoglobin
and blood sugar level.
You can take betahistine
16 mg thrice a day for vertigo. Hyperacidity can be cured by taking antacid like Omeprazole
20 mg along with Domperidone
10 mg before breakfast for few days.
If the problem persists, get yourself examined by a Neurophysician.
I hope this is helpful to you.