Can you check if the data does not have any special characters or spaces? Usually it is down to that issue verify in a notepad or try with few users in the csv to narrow down the issue.
Check the limitations and fix for these issue - username-contains-special-character
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.