set *err when too many components in CanonicalizePath