From referred pain to migraine, here’s what research reveals about the sudden headache that can follow an enthusiastic bite of ice cream.