dude ive had something like that before. minus the ghost. During deep REM, dreams can sometimes result in physical expected pain . For instance I had a dream that I was being stabbed(lol) and i woke up with the exact pain where the knife got me in my dream. It actualy hurt really bad to.