Although, you only mentioned one
triptan that you had the reaction to, and that was
Imitrex, aka Sumatriptan. Not all triptans are made with the same ingredients and so not all triptans will have the same side-effects. For example, Imitrex is the only triptan that is also a Sulfa drug (many people have Sulfa allergies). Imitrex is known to cause the side-effect you mentioned in some people, the severe heart palpitations.