Yeah, I bet that’s the problem. I tried a few variations based on some answers below:
but still don’t am not getting this quite right:
          transformPasted(slice) {
            const content = slice.content.textBetween(1, slice.content.size);
            const nodes = slice.content.content.map((node, i) => i > 0 ? node : schema.nodes.heading.create({
	      ...node.attrs, copyPasteData: undefined
            }, node.content));
            const result = new Slice(
              Fragment.fromArray(nodes),
              slice.openStart,
              slice.openEnd
            )
            return result;
          }
Any thoughts on what might be going wrong?