のか分からなかった

didn't know whether

→ の
phrase Rare #27,951
didn't know whether Used after a clause to express that the speaker could not tell or understand what, whether, or how something was. The part before のか can include question words such as 何が (what) or どんなに (how much).
JA: 彼が本当に来るのか分からなかった。
EN: I didn't know whether he would really come.

私は彼が何について話しているのか分からなかった

I didn't know what he was talking about.

何が出世障害になっているのか分からなかった

I didn't know what was standing in the way of my career advancement.

私は彼が何を言いたいのか分からなかった

I couldn't understand what he was trying to say.

彼らは彼が死んでいるのか生きているのか分からなかった

They didn't know whether he was dead or alive.

トムなぜみんなが笑っているのか分からなかった

Tom didn’t understand why everyone was laughing.