Upload the users using the CLI option?
https://docs.moodle.org/405/en/Upload_users#Upload_users_via_CLI
https://docs.moodle.org/405/en/Upload_users#Upload_users_via_CLI
You could also try Moosh (https://moosh-online.com/commands/). Probably the 'user-create' command.