I get this message now regularly when opening Scrip Editor.
Here is what happens. I have scripts that after running fine for years now crash from time to time and the dialog box allows me to open the script (I do this as I want to see what script is causing this) and after I close the script Scrip Editor crashes.
This is the message:
Script Editor quit unexpectedly.
Click Reopen to open the application again. Click Report to see more detailed information and send a report to Apple.
OS 10.15.7.