Ok I've decided not to worry about this and to just live with the original error. None of the gurus at SMF seem to know how to fix it either so it could be just one of those obscure gremlin things. It's manageable in terms of the number of errors and by the time it becomes unmanageable we'll be on SMF2, which will generate brand new errors.