Scuba Diving, Pressure, and Headaches
A diving headache almost always has one of four causes: carbon dioxide build-up from skip-breathing or over-exertion, sinus or middle-ear squeeze from failed equalisation, jaw and neck strain from gripping the regulator, or a mask strapped too tightly. Decompression illness is far down the list and usually comes with other symptoms. The pressure changes involved are enormous — descending ten metres doubles the absolute pressure on your body, a change roughly fifty times larger than a severe storm — but the body handles them well as long as the air spaces equalise.
Working out which of those four you have is straightforward once you know what to look for, and it changes what you should do about it.