The word "headache" should be accompanied by the indefinite article "a." The sentence should be:
"He has a headache, so he cannot sleep."
which is exactly what I put; it got marked wrong. :-(
I cannot report the unnatural English: enbbne is absolutely correct, it should be "a headache," not just "headache."
This unit is impossible, every sentence has a bad English translation :/