I understand your reason to be worried. A child of 4 years, throwing up every other day is not a good sign. It needs to be evaluated.
There may be various underlying cause for this like gastrointestinal flu
infection, food poising, pyloric stenosis
and many more.
He needs to be evaluated by a gastroenterologist to decide on the cause and treatment.
Hope this helps.