Fetching details from the dictionary...
unexpected; unlikely; strange
terrible; awful; horrible; serious; outrageous
とんだ失敗をしてしまい上司に叱られた。
I made an unexpected blunder and was scolded by my boss.
とんだ勘違いをしていたことに気づいた。
I realized I had made a terrible misunderstanding.
とんだ迷惑をかけてしまい申し訳ない。
I'm sorry for causing such unexpected trouble.