What causes an ice cream headache like when you eat too much or too fast?

Brain Freeze. It is caused by having something cold touch the roof of the mouth , and is believed to result from a nerve response causing rapid constriction and swelling of blood vessels or a "referring" of pain from the roof of the mouth to the head.