PSA This post has important information about an iOS system crash that seems to happen in iOS 17.1 (and possibly 17.0), that may cause your keyboard extension to crash without anything being logged. Upgrading to iOS 17.2 seems to fix the problem.
https://keyboardkit.com/blog/2023/12/10/critical-extension-crashes-in-ios-17-1