Canbus bytes_invalid increase during Z move

What is your “transmit queue length” setting? The value of “txqueuelen”?

You may read this.