DevonThink 3 crashes attempting to repair database

Devonthink 3.9.17 repeatedly crashes upon attempting to repair a database that is open and diagnosed with 22754 inconsistencies, 0 invalid filenames, 0 missing and 13 orphaned files. (Since some time now, Dt regularly finds databases containing such problems, but usually is able to repair all or most of them. Not this time.) Is there a way to repair it anyhow (and to find out what caused this apparently harmful type of damage)?

Thanks!

In DEVONthink, hold the Option key and select Help > Report Bug.

PS: Version 3 is in maintenance and will be retired from development and support at some point. Version 4 is the active focus of development. We highly encourage you to upgrade sooner rather than later, if your Mac supports at least macOS Ventura 13.5