Some people can drink vodka or
gin without developing a headache but cannot drink red wine, beer or the amber-colored hard liquors. Red wine contains tyramine which probably causes these headaches. On the other hand, hard liquor contains ingredients called cogeners, which may also cause headaches. Darker, amber-colored liquors contain more congeners than light-colored liquors, such as vodka and gin.
Take care and best regards.