K.W.
This was happening to my brother's son too (at about the same age as your son) and it turned out to be nothing serious. I honestly can't remember what it was, its been a couple years, i just remember we were all very worried and then it turned out to be nothing to worry about. hopefully your situation will be the same, i'll call my sister in law and get her to tell me what it was that was causing it.