This is the thing I didn't want to happen.
ぼくは、こうなりたくなかったんだよ。
<主語+動詞>の文が後ろから名詞を修飾する文で、修飾される名詞が具体的なものを表していない the thing (もの、こと)の場合です。 I didn't want the thing to happen. (わたしは、そのことが起こることを望んでいませんでした)の語順を入れかえて the thing を前に出し、後ろから I didn't want to happen で修飾しています。 the thing I didn't want to happen で、「わたしが、起こることを望んでいなかったこと」という意味になります。