Breastfeeding to formula

Josie

I was struggling to produce milk one night and I had to rush to the market and get formula. I gave him two once and he was fine until 30 mins he throw up everything. Is there’re something wrong with formula