Epilepsy can result in nightmares.