You’re asking completely the wrong question.
You answered your own question in the scenario: you corrected the error as soon as you caught it. If you made a statistically significant error (something that actually changes the meaning of what you said) and you didn’t catch it until hours or days later, one might reasonably wonder how far out of your way you have to go to correct it. (Trust me when I say most people will neither notice nor care about small discrepancies.)
But your scenario is plain and simply ridiculous. That’s like asking if it’s a sin to trip and fall on your face, tripping someone else in the process. Obviously not.
Tripping someone on purpose could be a sin. Tripping absolutely anyone by accident could never be. The purposeful tripper may not consider malicious tripping to be a sin, and his belief doesn’t make it non-sin, but his intent to do the act itself is what makes it a sin.
Intent. Not intent to sin, but intent to perform an action, which, because of said intent, is a sin.
No intent to trip means no intent to act means ZERO POSSIBILITY OF SIN.
Doing absolutely anything involuntarily is by definition … Not… A … Sin.
Additionally, the very title of your thread violates the definition of a lie, which is an intentionally false statement.
Someone who is dead wrong is not lying if they believe what they say to be true.