Gershom Scholem’s “Sabbatai Sevi: The Mystical Messiah” (English translation by R. J. Zwi Werblowsky, Princeton 1973) on pages 816-817, discusses a Sabbatian work (אגרת מגן אברהם מארץ המערב by Abraham Cardozo) written to justify the false Messiah’s apostasy.
I quote (omitting both his footnotes and my caustic comments):
Cardozo was the first author to state clearly what was subsequently to become a Sabbatian stock argument: God does not “permit the beast of the righteous to sin in error, how much less the righteous themselves,” and He certainly would not allow His saints, let alone his whole people, to fall into such grievous error (ed., I capitalized the letter “H” twice). The argument is of considerable interest. Cardozo rejects the view, apparently voiced by many disabused believers, that Sabbati had acted in good faith at the beginning of his career, but had taken to deciet and sin after realizing his error. For if this view were correct, it would show that a life of exemplary saintliness may be rewarded by falling into sin, and thousands of devout penitents and earnest believers would have become victims of lies and decieit. This would be tantamount to denying God’s justice and providence. The messiah’s soul was from the highest world of asiluth, and ordinary human beings whose souls came from lower spheres could not possibly comprehend his actions.
Without getting into this too deeply, I will note the Chazon Ish was asked why he exposed the problems with Eruvin when the masses were innocently relying on their rabbis, and he reportedly answered along the lines of “even they know the truth regarding whom to ask”.
Also, see p.156 and thereabouts in Rabbi Brand’s “Bayom Harishon Tashbisu”.