It's possible that you're experiencing a heart attack as a symptom, and it's good to do some tests to figure out what's causing the symptoms.
Doctor, what's the reason for this experience of faintness and irregular heartbeat?