Question: why does egwene have headaches?
Answer: So it seems that Halima was indeed causing the headaches in order to gather information during their therapy sessions. Yes, Halima's mission was to foment discord with the rebels, but the headaches were actually the results of a failed attempt to control Egwene from within The World of Dreams by influencing her dreams.