There is a mostly ignored body of research linking at least some food allergies to food proteins in vaccines. Here is one such study https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3571073
Hard to take a huge macro view of only two factors as you are doing and draw any meaningful conclusion. Hence the need for deeper study