The error in the log is

"Error: Failed to invoke function 'onSection'."

No idea why.

The post was edited some time ago by Fusion support to alter the code for rigid tapping on my mill, I have also edited a line so that it outputs G43 H0 for every tool as my mill does not use tool length comp and it would cause issues.