And another thing...
The LCNC manual cautions against putting comments on the same line as O-words.
linuxcnc.org/docs/devel/html/gcode/o-code.html
You might try removing the comments in the main toolchange "oNNN call" lines first and see if that's the issue.