You are describing my son age 6 or 7. He was fine, went to school, but after having his school lunch developed stomach pains and was sick. He lay on a bean bag and slept for the rest of the afternoon, and went to bed early when he got home. It only happened on certain days so I did a bit of detective work and soon realised that his symptoms were associated with cheese whirls for lunch. He wasn't intolerant to cheese as a rule, just the type used in the whirls. I asked him not to chose that option again, and left a message with the dinner ladies. He was cured, no more stomach migraine, which is what the GP called it when he was consulted.
Have a good look at what your GS has been eating, and see if there is a correlation. It's worth a try.