Hmm that is a client issue with memory, since the osbot client doesn't use more than 256mb by default, so the fix for this is just to allocate more ram to the bot by running the bot via cmd:
java -jar OSBot.jar 1255
make a new notepad in the same folder as the osbot.jar and save it as run.bat, and enter that line of code above, to set memory to 1255
careful don't make the ram too high or it wont even launch