Thank you for playing! Did one of the ghost collide with your character just before you ran into that issue? The ghosts are only supposed to teleport after stealing your wood so it's possible you were standing on the respawn point it chose to teleport to.