Hi Frank, the reason the phase margin is reduced in your original setup is because of the pole introduced in the feedback loop with C6.
If you simulate the recommended values from the datasheet for Vo = 5V, you should see a healthy phase margin of roughly 53 degrees.

