if you have a warm or room-temperature drink handy, that might be the most polite way to stop the freeze. but the fastest, most readily available option is to put your thumb into your mouth (the same way a baby sucks his thumb) and press it to the roof of your mouth until your headache disappears.