From my personal research, sleep paralysis is not a jinn attack. Our scholars encourage us to seek medical advise when we experience it. It’s said “ getting regular sleep schedule and avoiding sleep deprivation help in alleviating sleep paralysis
With respect to sleep paralysis, we do have narrations that the devils try to influence a person while sleeping. Sleep paralysis can be a result of jinn interference, but we cannot say for sure. Sometimes sleep paralysis is the result of stress, or the mind (and subconscious mind) being burdened with certain thoughts or experiences.
We have A’maal recommended by the Ahlulbayt (a) that help with sleeping trouble. These include certain supplications before sleeping, sleeping on the right side, and doing Wudhu. Those who experience sleep paralysis seem to encounter it less when doing these A’maal. So I would recommend observing them.