The fact you are getting both TCI lock and TCI ON message randomly could be a trailer fault, find some spares and change out the return wires from the top.of car inspection switch to eliminate .