Two things to check. One is to make sure your freehub is not binding. The other is to see if any of your chainrings is worn out. I had the same issue on an Ultegra 6700 triple once, and the fault was my 39t middle chainring (where I rode most of the time) being worn. Once I replaced that chainring, all was normal again.
Keep your head up on the knee replacement!