You answered, no and said that I was wrong. So let me see if I have got it right.  
You see no difference between the fact that the Holy Spirit prevents the Church from teaching error and the fact that the Holy Spirit does not prevent anyone from committing sin. Does that mean that He doesn't prevent the Church from teaching error or that He does prevent us all from committing sin?