So this happened to me twice.

While fighting YX in TWTNW, he just disappeared from the map during the first phase. Reset the console and try again.

The next time this happens again but during the clock phase, once again, Xehanort disappeared leaving me stranded.

Is this a common glitch? I don't recall it happening on my first playthrough.