The heartache originates because of sharp spastic stricture or corking of the coronary arteries feeding heart. Thus, the cardiac muscle (myocardium) ceases to cope with stress and there is the oxygen deficiency and the pain in it.
Depression is a real medical condition associated with changes in the biochemistry of the brain. It also needs to be treated like hypertension or diabetes.