Upvote:1
If reciting a mantra is causing you to hallucinate, I would recommend immediately stopping that practice.
Formal refuge under a VajrayΔna guru cannot cure mental illness. It can't even cure depression. The Buddhadharma isn't about making one's life more comfortable (not claiming you said so).
I don't know anything in-depth about the Vajraguru mantra (that is the name of the mantra you inquired about). Because it is Guru PadmasaαΉbhava's mantra, you chanting it without initiation is likely a mishandling of the mantra according to the traditions that use that mantra.