So basically, this error indicates that the Lead record has been transformed to a Contact. Once converted, the Lead record can't be modernized. The Lead object has an IsConverted property that you can compare to see if it has been converted. If IsConverted is true, ConvertedContactId will hold the contact ID of the new Contact record.
Lead Object reference