There is little agreement on things like this. Either way seems all right to me, being equally intelligible. As an adjectival attribute , I would hyphenate it: a cardiac-related problem.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.