The OT carried the idea of lying that you meant harm toward the person you lied to.
Exactly! "Bearing false witness against your neighbor." meant BEING a false witness against them about a crime. Having two or more witnesses brought against you was required to prosecute someone for a criminal act. It, of course, meant lying about them but the intent was to do them harm UNJUSTLY and that was the sin.