I have mods Kerbalism, Scrapyard and OhScrap (among others). Got the same error, and I tried this workaround:
I am sure you get the error only when you are able to fix it. Otherwise a "failure on repairs" message appears. Therefore it is possible to save the game, open it with a text editor (notepad++) and edit this line:
hasFailed = True
it is located inside MODULE section of the PART section on the VESSEL section
If you do a search on the savegame, looking for that line (hasFailed = True), should point to all the parts that are in failed state.
So you change it to False and reload the savegame (it is not even necessary to exit the game)
Aaaand, since you are legitimately able to repair it, there is no cheat here.
Use case: I have a lander in orbit, one of the batteries failed. Did a rendezvous with a station where a lvl2 Engineer is standing by. As I cannot fix it becacuse the error prompts, I did savegame editing. Voilà.
Hope this helps until issue gets fixed.