No, I meant for all the chapters of the game. for example, if you lose twice in the first one, then you can only lose once in the second one, since the two previous defeats occurred in the previous chapter. Is this not how it works or what?
No, losses reset per-game. It's how many times you lose to the "mob" enemies in a particular game. Or more precisely, each game tracks them separately.