I'm almost a broken record on this, but: this is something the software industry has mostly (/somewhat) solved. Because our job isn't about programs, or computers, or software, or anything like this, it's information. We deal in information, in how to create it, transform it, assess it, transfer it, validate it, and so on. So, out of necessity, our information processes are very mature, including the information processes that allow us to do the rest of our work, a giant system of trial-and-so-so-many-errors.
Of course it varies widely, but most large software companies have bounty programs, where if you report a bug they didn't know you can get rewards, usually cash. Sometimes a job offer, especially if it deals with security or is especially tricky. There are open programs about finding and exploiting security holes, and they are taken very seriously, completely unlike the academic publishing model which basically considers all issues shut once a paper is published. Open source projects, which is a closer model to academic research, also does similar things, and mostly for reputation gains, so would be the best model to emulate.
Of course one big difference is that software developers want to know about bugs. To correct them. Quickly. Whereas in academic research, every error pointed out is immediately dismissed as a personal attack, and things don't get much better from there. Completely different cultures. Despite the fiction of science being "self-correcting", scientists hate being corrected. Absolutely hate the living hell out of it, because mistakes are considered a mistake, rather than a continuous process of iterative improvement, where after-market service and maintenance is crucial to the industry.
It's seriously demoralizing thinking of how much medicine could be improved if it actually did multidsciplinary work, spanning across actual disciplines, rather than specialties of the same discipline. Engineering methods and especially the processes we use to deal with information could radically improve things there, but of course people solely trained on memorizing bits of human biology don't really see the potential here. Which is odd considering how so much of clinical work is basically following scripts, just with much less error- and exception-handling, testing or validation.