I've had an ED for 12 years now starting with an EDNOS diagnosis that has now the last 5 years changed to an Anorexia diagnosis. I was also suffering (and still am) with stomach pains pretty much daily, sometimes to the point where I throw up. I
really recommend your boyfriend goes to the doctors asap .. for me it turned out to be stomach ulcers and gastric problems due to my ED I now have meds for it and it helps, now I am at least not scared of eating
because I'll be in pain which is one less thing to worry about

...also getting to the root of his stomach pain and getting that fixed might possibly help him continue going forward with recovering
wishing you both the best of luck!