I also saw this today. (End of file error while doing a TDMS Write.)
Is there any update on this issue? Was it ever escalated to R&D? I think it'd be worthwhile to do so, even if just to ask them to examine the code for obvious ways that something could go wrong and be reported as error 4.
Details:
* I'm not doing a repeated open/write/close. Instead, I'm opening once, writing a bunch of times, then doing the close. At some point (after logging many megabytes of data), I got error 4 from TDMS Write.
* This is on a PXI RT system, writing the file to the local hard disk.
* I'm using LabVIEW 2018.