Re: what is the remedy of having fits while sleeping
I would first ask has the person seen a neurologist or epilepsy specialist. If so, are they on medications for such? (things for you to think about).
There is also (following up on first reply) Nocturnal Seizures. They are what the title sounds like to the most part. They occur during sleep (even if it's a nap in the daytime). If a patient frequently has seizures during the time they are asleep and not when awake, and have yet to be diagnosed with anything, this is a possible.
HOWEVER, You also mentioned sleeping medications. The combination of those and epilepsy medications **may be** an issue. Remember to inform any doctors about "other medications". Not knowing any details about the sleep medications (and not needing to know!) almost every medication has side effects.
I think what I am trying to say poorly is have these episodes JUST started when the sleeping medication was started?
Seeing a doctor is the solution to the questions. Jot down the symptoms, frequency, roughly how long, how many you can confirm per day and so on. Pretty much start a "log" for the seizures, and any related symptoms you observe (bite cheek, arms stiffen, drool, kick, speak during seizure, confused after; those are some EXAMPLES). This will help the Dr having this data in your hand.