This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.
You should be able to do this with the Email Users function with the "Only generate a list of email addresses" ticked. Output of username and email address is text but it's easily pasted correctly into a spreadsheet from which you cansave a CSV file.
When you have potentially 300k + usernames and emails, you run into memory limits. We already have 2GB memory_limit and get blank white pages doing that.