https://bugs.winehq.org/show_bug.cgi?id=56789
--- Comment #4 from jubilantjerry@gmail.com --- I've had to downgrade Wine to version 9.3 to get a working setup again. All versions between 9.4 to 9.11 did not work. For now, I'm forced to hold the version to avoid disrupting my work as I wait for the bug report to be noticed at some point in the future.
The updates for Wine 9.4 were: Bundled vkd3d upgraded to version 1.11. Initial OpenGL support in the Wayland driver. Support for elevating process privileges. More HID pointer improvements. Various bug fixes.
The problem with XI_BadDevice should be related to one of these, I'm guessing it could be the OpenGL support.