There is another cause for pumphead as well. During surgery, the body is cooled to a hyperthermic state to reduce the chances of collateral damage from stopped or impeded blood flow.
The brain is very sensitive, and can use as much oxygen as the rest of the body parts put together. If the patient is warmed back up too quickly, the brain will develop a sudden high demand for oxygen that will exceed the body's ability to take it in and deliver it. To avoid this, the body should be warmed back up more slowly. You can ask if the hospital practices this.
However, most cases of pumphead do reverse over time. If not, those around you eventually decline, and over time, you begin to look smarter by comparison.
For some of us, of course, pumphead is just a wonderful excuse that allows us to remain in permanent denial of a preexisting condition of mental fog...
Best wishes,