If the error is still in the same file, maybe you can "strip" it.
I have no idea if that is possible on Mac for a (system?) library.
I don't know if the "strip" utility will do that (strip, at least on other systems, can be used to remove debug info from executables).
Then again, you need that library to function, so touching it may be dangerous, unless you are sure you only touch debug info (which may or may not be stored separately).
I don't usually work on Mac myself. So I don't have specifics....