Mine are caused from sleep apnea for sure. I noticed using my CPAP machine at night or when napping I don't awaken with headaches as much. Yeah, stress can be a cause I've read.
https://www.mayoclinic.org/diseases-...s/art-20046707
https://www.healthline.com/health/he...iety-headaches