There are other reasons that the Church lost the faithful having to do with the conduct of the clergy.  There is a belief in more human freedom and less rote obedience.  This raises the bar that doctrine has to meet.  Calling on moral doctrine the law of God, irreformable even when circumstances dictate it is not and has never been free of error is simply hubris.