Why do all four Gospels contain different versions?You can read "Inscriptions on the Cross", here.
Does this indicate error?
By no means. Both Luke and John tell us that the inscription on the Cross of Jesus was written in three languages, Greek, Latin and Hebrew. It is therefore a reasonable assumption that three of the Gospel writers each chose to quote a different language, and that one writer chose to quote the words common to the other three.