BTT trigger causes crash when save dialog appears

Greetings,
I seem to have stumbled upon a bug with the following trigger for TextEdit:


It works fine until a save dialog pops up, which seems to make BTT crash. I can confirm that it won't crash when the trigger is disabled.

This happens on 5.294 and a late 2014 iMac running Sequoia 15.4.

Here's the crash log:
BTT Crash Log.txt (119.2 KB)