Whilst he is exploring the house, he discovers a locked door, which, due to his state of heightened emotion, causes him some distress when he is unable to open it.
Whilst he is exploring the house, he discovers a locked door. A locked door causes him some distress. This is due to his state of heightened emotion. He is unable to open it.