We tried to write 100 bytes at a time (instead of 264.. as your buffer size is 128).
Actually, it is more. The recommendation for 100 bytes at a time was so you do no loose much data in case pf power loos or other issues. You can write any amount you like.
Sill sometimes, there is some improper reponse from USBwiz.
Does it respond with weird characters or never responds?
Maybe power is dropping and you are loosing communications.