There isn't a fixed perspective. It seems that some people are just naturally more prone to this happening. In other cases there may be other factors such as jinn, since people are more aware of jinn when asleep. It is a natural phenomenon anyway.
If someone is distressed by regular sleep paralysis or things that occur during sleep paralysis, they could try various practical interventions that people use to stop it (which one can research elsewhere, such as trying to move a finger or toe a tiny amount to break out) and also prayers for protection.