Welcome to Health Care Magic
Probably the two issues are not related...
Get yourself examined first...
Have an endoscopy
to investigate the stomach
Have a Holter monitor
to investigate the racing heart.
Some basic blood tests will also be necessary..
Wishing speedy recovery