Is the problem in the code or in the OLED screen?

No, it does not exist. The code is reaching beyond the end of the array. Accessing it that way is undefined behavior and all bets are off. Practically speaking, you are just reading some garbage/other variable that happens to occupy that space. On a different architecture, the OS could detect that and terminate or whatever