These things or rather this phase comes to every sadhak especially if one has taken to the Yoga at a young age when the vital drives are strongest. That is the age old wisdom that people should take to Yoga after they have experienced life a little going through the experiences natural to each age until they are fully ready.
In any case the best way to deal with these things is not to give them so much importance, to detach oneself from these movements when they arise saying to oneself that this is not what I am, to turn the mind away by staying busy, sublimation of energies into sports or physical exercises and education, and calling the Mother’s Name if the struggle gets too intense.
As I said if you are too young it may be helpful to go through life experiences so that some of these tendencies get weakened and exhausted. Plenty of people practice yoga as a person engaged with different aspects of life such as taking up a Job, going through a relationship etc and it is not necessarily always a bad idea.
Affectionately,
Alok Da