Anki for Windows 2.1.58 Crashes After Deleting Empty Cards

I’ve just installed Anki for Windows 2.1.58.
When I try to delete empty cards from Tools > Empty Cards, shortly after I execute Anki crashes so the empty cards cannot be deleted.
This problem does not occur in the previous version.

There haven’t been any changes related to this code recently. The issue is likely a toolkit bug, and you may find it helps to switch to the qt5 or qt6 versions depending on what you’re currently using.