The text doesn't say YHWH lied; the serpent implied that.
According to Scripture, YHWH cannot lie. Do you deny that? You probably do because you appear to make a distinction between God/Elohim and YHWH which I don't believe is backed up by the Scriptures.