Erica Ortegas actually has a unique brain structure that makes her more resilient to various forms of illusion and trickery, but can't help but enjoy the absurdity.
She snapped out of the fantasy about 2/3 of the way through The Elysian Kingdom but kept playing her role anyway. She actually remembers the entire thing, and secretly shares impressions of Captain Pike's character for inside jokes.