Epilepsy is a condition that occurs in the central nervous system where the brain starts to react abnormally which leads…