Welcome to Health Care Magic
It is difficult to conclude from this description.
/ incidental problem of heart, not related to food - arrhythmia
- anything might be responsible.
The ideal option will be to go the ER / get yourself examined / may be a few basic blood tests too
Wishing speedy recovery