From the Summa:
"Again, it must be observed that nothing prevents a thing which is known habitually from not being considered actually: so that it is possible for a man to have correct knowledge not only in general but also in particular, and yet not to consider his knowledge actually: and in such a case it does not seem difficult for a man to act counter to what he does not actually consider. Now, that a man sometimes fails to consider in particular what he knows habitually, may happen through mere lack of attention: for instance, a man who knows geometry, may not attend to the consideration of geometrical conclusions, which he is ready to consider at any moment. Sometimes man fails to consider actually what he knows habitually, on account of some hindrance supervening, e.g. some external occupation, or some bodily infirmity; and, in this way, a man who is in a state of passion, fails to consider in particular what he knows in general, in so far as the passions hinder him from considering it. Now it hinders him in three ways. First, by way of distraction, as explained above (Article 1). Secondly, by way of opposition, because a passion often inclines to something contrary to what man knows in general. Thirdly, by way of bodily transmutation, the result of which is that the reason is somehow fettered so as not to exercise its act freely; even as sleep or drunkenness, on account of some change wrought on the body, fetters the use of reason. "
That’s what I mean.
Also consider someone who knows that a triangle is a three-sided figure. That doesn’t mean that he can’t in a fit of passion deliberately say that its a four-sided figure.
Now was I in a state of passion? I wouldn’t call it passion but I was very focused on what was happening in the confessional so I didn’t really consider or think it necessary to consider my doubts more carefully.
Thus insofar as there was a passion, there was an accident.