Doctors are not sure what causes SUDEP. It may be caused by problems with breathing, the heart, and the brain after a person has a seizure. It most often happens with an epileptic seizure, especially with a generalized tonic-clonic (GTC) seizure. It’s also more likely to happen during sleep after a seizure. In some cases, it occurs without any signs of a seizure.