What is the error number that you see?
Since LabWindows uses the same driver, if there's a bug in NI-GPIB, it would be still happen there and if there's a problem with the instrument, same thing. If you can provide more details on the nature of the error and what your program is doing, that would help. If you can, attach your program or a sample example that demonstrates the issue.