No, zlib does not know anything about filenames. zlib only compresses
a blob of data.
Your error is from the tar module, and given the length you state
above, you might just be exceeding the max length for a filename in the
header for the tar variant that the tcllib tar module generates. Which
makes the error message a bit confusing.