It looks like discourse/script/import_scripts/question2answer.rb at main · discourse/discourse · GitHub was updated more recently. (Oh, but it doesn’t import passwords).
Some field is empty or missing and shouldn’t be. You can try adding a put statement at line 111 printing out the user data and see if any of those fields are empty. And if they are, then you figure out why.