"A nightmare came on him last night". That should be marked correct because it's the literal translation.
Important to know that across much of the US the more literal translation, "a nightmare came on him last night" is the accepted speech, at least among the older pre-television generation.
Where does "he" come from? I wrote "A nightmare came last night."
air is ar é. In Irish, you don't 'have' a nightmare; nightmares come on you.
I knew that. Go raibh maith agat!
Putting it that way, that's kinda creepy.
It's a very poetic language. Sometimes for the worse haha