It is not being on the spiritual path that brings misery. It is rather attachment to the old ways of life with all its desires and the ego that brings misery always. But when one has turned to the spiritual path then this misery gets compounded as the dislocation between the inner aspiration and the outer reality becomes very wide.