I think Olivia’s migraines was the physical manifestation of her sensitivity to the supernatural. As the House began to take over her good sense, it caused a dissonance between her real self and her possessed self. Hence, the migraines. I also think the House’s ability to move Olivia through time was also causing the headaches. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.