Emacs is not compatible with latest tree-sitter 0.22.6 in Debian sid, and crashes when tree-sitter highlighting is enabled (eg. in c-ts-mode). Emacs should require an exact major (actually, minor in this case) version of tree-sitter to avoid this.
Hello, Probably not, we handle this in Debian with SONAMEs. There is some discussion in #1100365. This'll resolve itself soon.