I can assure you that there's nothing wrong

. This is called Rapid Eye Movement (REM) sleep. It is a phase of sleep when the body effectively shuts down & loses muscle control, hence the erratic twitching. You should also see the eyes flickering around, usually beneath the lids, but sometimes with the eyes partially open.
It is during REM sleep that the brain is processing information gathered from the day's events, sorting it into context & linking it with other things already in our memories, transferring information from short term to long term memory ~ sort of like defragging a computer!
Studies on humans show that it is during REM sleep that we are most likely to dream (probably due to the brain activity which presumably is why dreams often seem disjointed, out of context etc). People woken up during REM sleep are more likely to remember their dreams quite vividly & often about frightening episodes. A recent Panorama programme showed the latest research into Phase 4 sleep & brain wave recordings & anecdotal evidence suggests that it is during this sort of sleep that people most often report pleasant dream experiences. It's do do with the type of brain activity in the different phases of sleep.
Whilst we can't be certain that animals dream in the way that people do, the similarities in brain wave activity suggests that it is likely that animals do experience dreams of some sort.
REM sleep is incredibly important for both mental & physical well being & especially to assimilate new learning. This is why it is vital to ensure that stressed animals are allowed time out to relax properly so that they can get the proper type & amount of sleep. So for this reason it is best if you just let your cat twitch away to her heatr's content & try not to disturb her during this time ~ it's perfectly natural & a sign of good health.
In my house we often have both dogs twitching away, grumbling & muttering, in front of the fire. My OH is so used to this now that he starts to whisper & tip toe round the dogs, as I've instilled in him that he must not disturb them

.