The problem with those ideas is you'll likely end up with calcium or barium malates, the latter of which is particularly undesirable given the toxicity of barium compounds. The mescaline would remain in solution as the hydrochloride, along with whatever excess metal chloride may have been added, or the mesc malate if insufficient metal chloride was added.
Technically the chatGPT was correct but that was presumably because your question was ambiguous and you only asked for the precipitation of a malate salt rather than mescaline malate. Or am I wrong about this? How was your question phrased?
“There is a way of manipulating matter and energy so as to produce what modern scientists call 'a field of force'. The field acts on the observer and puts him in a privileged position vis-à-vis the universe. From this position he has access to the realities which are ordinarily hidden from us by time and space, matter and energy. This is what we call the Great Work."
― Jacques Bergier, quoting Fulcanelli