For some people, migraines can be triggered by things like light or certain smells. It's not at all impossible that a certain taste can also trigger them.