1 verses of the World English Bible have both "erred" and "if".
Job 19:4 If it is true that I have erred, my error remains with myself.
In other translations: KJV Webster DRC Geneva