There are a lot of things that could cause that, being out of shape is one of them.
Also in the mix could be low blood sugar
, low blood pressure, your arrythmia
Ordinarily I'd say it sounds like low blood sugar, but given your cardiac issue, this really is something you ought to discuss with your doctor. Hopefully he's got a bit of sports medicine