Depends on jurisdiction. In Germany, in order to qualify as theft, there needs to be intent. So just an error is not enough.
How to prove "intentional vs. not-intentional"? Easy: the whiter and richer you are, the more likely it is for you to convince everybody that it was a honest mistake ¯\_(ツ)_/¯