Kids are less judgemental than adults, he can have, find, keep friends. At 12, even if he's delayed in mental and emotional maturity, he's still entering puberty, which is rough.
I'm not sure exactly what your question is. How to head off meltdowns? How to react to meltdowns?