The past tense of have nightmares is had nightmares.
The third-person singular simple present indicative form of have nightmares is has nightmares.
The present participle of have nightmares is having nightmares.
The past participle of have nightmares is had nightmares.