When you right-click on a trigger and choose the option to alter the trigger, the SQL that is generated is not executable without first editing the text.
The SQL that is generated looks like:
create trigger `
` BEFORE INSERT on `
Because there is no space between the row and BEGIN words, attempting to execute the generated statement to rebuild the trigger results in an error when inserting the new trigger, but only after successfully dropping the existing trigger.