It can be from a virus or other infection, a heart attack, heart surgery, other medical conditions, injuries, and certain medicines. ... Symptoms of pericardial problems include chest pain, rapid heartbeat, and difficulty breathing. Fever is a common symptom of acute pericarditis.