According to Osho, 'madness' is an inevitable layer of inner chaos on the way to truth: it must be lived through, not avoided. Move through it as a witnessing awareness - never identifying with it. Real meditation provokes this chaos while teaching alertness, and a Master safeguards you. Witnessed, the storm returns you to the original source; identified, it becomes pathology.
On the path, feeling crazy is just an inner storm - watch it without calling it 'me', and with a good guide it passes and leaves you clearer.