Did you have a lot of caffene in your system at the time?
I sometimes get a racing heartbeat & breathlessness from caffene (>= 2-300mg) & weed ( only when smoking a LOT )