It could be due to acidity or it could also be health anxiety, in which individuals usually imagine the worst situation with the smallest of symptoms that they have.
You can consult a doctor or a psychologist if the problem persists.
Next Steps
For now you can consult a physician to rule out any cardiac symptoms. If later you still feel anxious then you can see a psychologist or a psychiatrist.