@syncakes So... not saying your little guy is autistic, but my daughter quit eating around that age, and never really slept.
Regardless of the underlying cause, if it persists its called ARFID, and takes Occupational therapy.
I spent 3 years doing "food science" food exposure that was fun...