It seems HTML export wants to create a directory (in my case, with a single file inside), but if you select an existing HTML file to overwrite, it just fails entirely with the confusing "Could not export file." message.