funded_psbt.txt and final_psbt.txt should only ever have one line in them, since later steps just do $(cat ...) to read them back. but the tutorial uses >> (append) instead of > (overwrite), so if you run the send or walletprocesspsbt step twice without deleting the file, it adds a second line instead of replacing the first one. then $(cat ...) picks up both lines as separate args and the next command fails with too many arguments.
Fixes #35862.