Lucid Dreaming can cause it. As you may end up waking up from the dream in SP.

It has happened to me but then I dream exit induced lucid dream and had another