If you have stomach problems, like acid reflux or ulcers, ask your doctor if it’s okay to have caffeine. Large doses of caffeine cause you to lose too much water, especially when consumed in conjunction with exercise.