Coffee is safe for some people, but drinking too much coffee can cause side effects including insomnia, stomach upset, nausea, vomiting, increased heart rate, and headaches, and pregnant women also warn against drinking too much coffee.