If food allergies indeed triggered this, patch testing is likely a good first move to find out exactly what your allergic too, avoid it, and go from there.
Ec sucks, I've only had it about 10 months now. But have faith, the right treatment will see you through this.