https://bugs.winehq.org/show_bug.cgi?id=56607
--- Comment #6 from Gabriel Ivăncescu gabrielopcode@gmail.com --- For me the "Bad X Window" error is easier to reproduce with this AutoHotkey script:
#NoEnv Sleep 3000 Reload
It gives the error on reload and explorer dies.