Question about weed

Why do I always get headaches when my high is coming down? And I smoke really good shit too so I know it’s not because of the quality.