A technical error at Amazon has exposed the names and email addresses of customers just days before Black Friday shopping begins.