1.
N-
to have a nightmare; to dream a bad dream.
Nightmares are believed to have evil effects on people sometimes causing their death.
He dreamed [of] a corpse.
2.
eh, ni-
to be the subject of a nightmare; to be dreamed about in a nightmare.
Sometimes the eh agentive marker is elliptical, that is, it is understood, but not overtly written.
He died in his sleep because a corpse was dreamed of [by him].