Many drugs can precipitate a psychotic episode, including stimluants, psychedelics, even Alcohol. It's a risk you take when you take drugs but can be mitigated if you known what to expect and have support.
Ketamine I don't think has a huge problem with this compared to other drugs. It may be a bit of a bizarre experience but not often a tramuatizing one.