Does your plugin's scriptinfo .fr use en_right with the four-char code 'rght' ?
If you used en_right 'rght' = "right" for an own enumeration value or property, you changed that mapping for everything else.
That enum value is used for "right align" script names all over the place. As you found kJustificationEnumScriptElement "justification", but also kParagraphAlignEnumScriptElement "single word justification", kTabStopAlignmentEnumScriptElement "tab stop alignment" and so forth.
So "en_right" is a misleading choice for that identifier. Better don't back-guess the name from the en_ … .
The header comment in ScriptingDef.h hints to AppleScript kAERightJustified, maybe they made the value compatible but got more specific with the name. Could also have been a collision with p_Right = 'marr' which indeed maps to "right", but for use in the margin preferences property. It was only later also used for an obscure DPS-related enum.
As a reminder, once upon a time there was an online database to allocate script IDs, but that was killed because it was located on an old server, it used an old css not matching then-modernized corporate ID, or nobody knew it was used any more. The replacement mechanism is to negotiate/allocate script IDs via mail to wwds at adobe . com. Beyond avoiding such collisions, this is important as such names also become part of persistence in IDML / IDMS and so forth.
You should also have found the collision with the debug build.