Anxious or insecure people can get headaches when they encounter very stressful situations. If getting overstressed is a chronic problem for you, you might want to see a therapist and learn some relaxation techniques that might keep you from exploding, such as meditation, exercise, etc. And yeah, this used to happen to me whenever I got into an anxious or insecure situation. It's pretty common.
Nothing broke. Likely you are just over analyzing your body. Relax and it likely will not be a problem.