I submitted a journal article to Forum: Qualitative Sozialforschung/ Forum: Qualitative Social Research back in September-October 2016. By February 2017, I received an R&R. April 2017, official acceptance. We were in the midst of the final edits, but I couldn't fully understand the editing requests of the editor. She threw the broad recommendations at me to "fix references" and to "improve readability". But even though I adhered and responded to all the specific queries/comments marked by reviewers throughout the paper and went through the paper multiple rounds after, the editor still wasn't satisfied. She snarked at me telling me she was "repeating herself now", and refused to read my paper in-depth until I'd made the appropriate changes. I apologized several times, but at this point, whatever responses/comments I'd written in the paper itself I now had to email directly to her or she wouldn't see them. I noticed in the edits she'd misunderstood some italicized words for a quote, so I kindly brought up that my italics were actually for emphasis and not quotation. I then asked her to simply identify which sections didn't look right or "readable", and I'd be most happy to edit it. Immediately after, she straight-out told me she decided not to publish my article, because she felt attacked by what I asked and because I had one reference that didn't conform to her guidelines (I wrote "trans." for translation rather than "transl by."). This happened this week in June 2017. I feel like I had a lot of my time wasted, and it feels unfair to have my article rejected AFTER acceptance. And even more so because the rejection wasn't for the quality of my paper nor the fit of my article, but because of a personal grievance of hers about something that I didn't even do, and a citation detail that doesn't really seem significant. Is recanting an acceptance this close to the finish line ethical? Can an editor decide this without consulting any of the reviewers or editorial board? I understand I made some mistakes, but they were just references and some issue with "readability" that I didn't understand, which is why I simply asked -- were these really so serious that an editor could justifiably do what she did? How should I respond?
Edit: I should add the readability issue is related to a language barrier, as the Editor was not a native English speaker. I've published a lot over my career in reputable journals, so I'm fairly confident my writing's fine.