You are in the right track, you just got scared while you were in sleep paralysis. I guess you were not having low energy to exit your body. If you got panicked at this time, which is why you might have had the inflammation thing. Next time when you do it, you have to stay calm.
Did you try to exit your body while you were visualizing only darkness? Which technique did you use to exit your body?