I think your child has Cow milk protein Allergy (CMPA).
You should use soy based formula like Isomil , Similac Soy isomil and avoid dairy based food in childs diet.1-2 glasses of soy based milk would be enough.
Next Steps
Get a immunocap test (infant) for allegy done. Start
Vitamin D supplements. Give
Calcium rich diet like broccoli, turnip, almonds, tofu, soybeans etc
Health Tips
Retry with dairy milk after atleast 6 months