Add a check for instance buffer overflow