hy i have no experience with pumping data into an cnc ...
to keep the ″wheels rolling″ just break the program in 2 parts
about your error + you load longer programs, maybe there is too much data pumped, thus there is too much code waiting to be executed
i would try :
... runing in step by step, at least arround the area where error occurs, across at least 2-3 data packages sent to the cnc; maybe there is a slower reaction time somewhere
... reducing the code : N358 X1.7448 Y0.2264 Z-0.0179 > X1.7448Y0.2264Z-0.0179, thus dehotting the buffer
... considering there is no code error, maybe there is an upper limit for the data size sent to the cnc
i don′t know how the balance between data sent and program execution is achieved ; that′s all from me