How to thank or apologize to an associate editor of a journal?
I would simply write a brief email along the lines of "Thanks for notifying me of the mistake, I will bear that in mind for future submissions. Apologies that I didn't catch it sooner."