I had a back spool a half shot roll one time when it had sat for a week or so.
What I think happened is the battery in the back that retains the frame count, ISO, etc whenever the back is off was low and lost this data. (camera didn't know it had a half roll loaded)
This is only a guess.
The camera itself supplies power for the backs when powered on.
That probably made no sense but it's hard to explain.
Basically is the coin battery in the back itself in good working order?