Could being exposed to mold for a long time cause food allergies?

No. There is no evidence to suggest these two are linked. Allergy to mold can cause eye, nose or asthma symptoms, but not food allergies.