Why Does Brain Freeze Hurt Your Forehead?
Brain freeze begins when very cold food or liquid rapidly cools the roof of the mouth or the back of the throat.
Blood vessels in the area react to the sudden temperature change. They narrow and then expand as the body attempts to restore warmth. This activity stimulates branches of the trigeminal nerve, which carries sensations from the face, mouth, and head.
The brain has difficulty identifying the exact source of the signal. It interprets pain coming from the mouth as if it were located in the forehead. This is called referred pain.
Eating or drinking slowly reduces the sudden temperature change. Pressing the tongue against the roof of the mouth can warm the area and may shorten the headache. Brain freeze usually disappears within seconds or a few minutes because normal temperature is restored quickly.
People who experience migraines may be more likely to experience these cold stimulus headaches, although brain freeze itself is harmless and does not damage the brain.
The formal name is cold stimulus headache. It is also called sphenopalatine ganglioneuralgia, referring to nerves located behind the nose and palate.
Source: How to Ease Brain Freeze, Johns Hopkins Medicine - What Causes Brain Freeze? Harvard Health Publishing

Sunset view from the back of the Seljalandsfoss waterfall, Suðurland, Iceland
Source: Diego Delso