What’s the possibility of non-UTF8 (or 16) characters in the dough and when it’s being copied/pasted in, the special character is what borks up the works?
Try first pasting into notepad, saving as a new text (and verifying character encoding) then re-opening and reviewing for oddball stuff.
Or if someone’s really hard core, re hand typing all of it for a new pastebin dough.
Saw something like what I described here bust out SQL deployments for a week - and only caught the t by luck or it could easily have been 2 or 3 weeks more