Have been having this problem for a while: I delete a folder (which moves it to 'Deleted Items.' After that, I am unable to open any other emails in Thunderbird. Need to restart Thunderbird in order to open an email.
Thunderbird 50.0b2.
Seems like a bug to me.
Cheers.