Well if the private intention of the minister can make sacraments done by the books invalid, then nobody can ever know if they were even baptized or ever recieved the true Body of Christ or was really forgiven in confession. Also, then Lefebvre was never a priest and most of us are not receiving the true sacraments and a very large number of people throughout history were not receiving the sacraments due to unbelieving priests and infiltrators. Would Christ set up the sacraments in such a way where they could so easily be invalidated without anyone ever knowing?
As Rev. De Salvo states, no one can have absolute certainty that any particular sacrament is valid.
"It's true that without a special revelation no one can have absolute certainty that he has received a sacrament or that he is in the state of grace, but his assurance on this subject may approach so nearly to this absolute certainty as to make any misgiving on the part of the recipient foolish and vain.” (p.x)
--- De Salvo, Rev. Raphael, O.S.B., S.T.L. The Dogmatic Theology on the Intention of the Minister in the Confection of the Sacraments. 1949.
Though we cannot have absolute certainty about the validity of any particular sacrament, we can be sufficiently certain, as Cardinal Billot states.
“…whenever there is no appearance of simulation on the part of the minister, the validity of the sacrament is sufficiently certain.” (p.201)
--- Billot, Cardinal Louis, S.J. De Ecclesiae Sacramentis. Commentarius in Tertiam Partem S. Thomae. Vol.1, 5th Ed. 1914.
Apart from special revelation, we can never have absolute certainty about the validity of a sacrament, but when it is performed with the proper matter and form, and with no appearance of simulation, we have moral certainty of its validity. This moral certainty is what Cardinal Billot previously described as being “sufficiently certain.” Moral certainty is not the certainty of faith, for we cannot have the certainty of faith that any particular sacrament is valid; but moral certainty is all we need.
“It is true that we cannot be certain with the certainty of faith, — that is, with the certainty with which we believe the being of God or the articles of the creed, — that this or that priest has been validly ordained, or this or that Sacrament has been validly administered; but we are certain, with the certainty of faith, that priests and Sacraments are Christ’s institution; and moreover we may be morally certain that in any indefinite number of instances there was an intention to do what the Church does; and these two certainties are enough for all practical purposes.” (p.28)
--- Brotherhood of St. Vincent of Paul. “The Intention of the Minister Necessary, etc.” The Clifton Tracts, Vol.III. 1865.
This moral certainty, therefore, is sufficient for acting prudently and without anxieties.
“Concerning the validity of the sacraments one can have moral certitude, which suffices for acting prudently, and for dispelling anxieties of spirit. Thus Leo XIII: "When someone seriously and according to the ritual adheres to the due matter and form for confecting and conferring a sacrament, from this fact [considered according to the common manner in which men act] it may be inferred that he undoubtedly intends (with an internal intention) to do what the Church does."[Apostolicae Curae]” (n.479, rep. to obj. 2)
--- Hervé, Msgr. Jean Marie. Manuale Theologiae Domaticae, Vol. III. 1929.