He had coped with the problem for two years before he underwent/suffered an operation which effectively cured him.
He had coped with the problem for two years before he underwent/suffered an operation which effectively cured him.
He had coped with the problem for two years before he underwent/suffered an operation which effectively cured him.
underwent