If a spasm lasts long enough, you can have chest pain (angina) and even a heart attack (myocardial infarction). Unlike typical angina, which usually occurs with physical activity, coronary artery spasms often occur at rest, typically between midnight and early morning