Question: can you get a headache from sleeping with wet hair?
Answer: Fungal diseases or scalp infections require contact with contaminated sources, so unless your pillowcase has fungus growth, you won't have fungus growing in your hair just because you slept with wet hair. There is also no scientific evidence that links headaches to sleeping with wet hair.