I have no idea what caused it. This happened during my backup process so I lost about a month worth of personal emails. Definitely a nuisance but i don't think I lost anything critical.
It looks like the offline backup process needs to be:
- Download emails with thunderbird (using IMAP so they aren't deleted online)
And do you know why Thunderbird decided to do that?