This appears to be a confirmation code. I don't think it has to be for a bitcoin account. It could be for anything personal or government related. Perhaps they require him to reset his government passwords at a regular interval.
He's probably pasting what he thinks is the tweet he just wrote into Twitter and hitting send before realizing he pasted the confirmation code he copied and pasted earlier. It's most likely timed out and harmless by the time he sends it.