Food intolerance?
The symptoms that the author descibed as being reduced when eating Huel, combined with the reaction to the pie, strongly suggest a food intolerance akin to Coeliac disease. Huel is, I believe, marketed as being gluten free, perhaps a test for gluten intolerance would not go amiss? Coeliac disease is now known to be a lot more common, especially amoung those of celtic ancestry, than was previously suspected.
Note, I am not a doctor.