It would help to know what kind of machine, where you are running the code from, how you generated the code, that sort of thing. But, as a guess, you are running code that has too many strokes per minute (too many very small moves), which is causing the buffer to be starved for information, because it can't process fast enough.