Chest pains from Caffeine

Whenever I drink more than 1 cup of coffee or more than 1 can of soda I get chest pains. The chest pains don't usually come until I'm sleeping.It wakes me up in the middle of the night. I can only sit up for it to some what feel better. Does this happen to anyone else? What do you do about it? Did you go to the doctor and what did they say?