Tapeworm eggs found in the brain of a man who suffered severe migraines are believed to have been caused by undercooked bacon.