Every once in a while I get brain spasms during sleep, eras close and as if im shocked by electricity my brain becomes numb and eyes can't open easily?

Get evaluation. It's hard to tell from only the information you provide, but it sounds like there may be medical issue. Please discuss with your primary care physician, who can best evaluate you and recommend next steps. Hope this answer helps.