It seems that if a template is too large or perhaps too complex then copying a step branch (even one with no connections) will often result in these errors.
"Value was either too large or too small for an Int32."
"Error creating window handle"
After that happens, it is not possible to...