I had a long standing problem with a “Trailer Brake Error” on a 2015 Chevy Silverado that Chevy couldn’t figure out so they wanted replace all the associated electronics for a four-figure price. I spotted a YouTube video made by one of the many people who’ve had this same problem. A few minutes of work and a few dollars for a new switch and the problem is gone.