The most serious was that we were keeping a reference to a string which changed out from under the reference when it was deleted from the wxArrayString. Fixes https://gitlab.com/kicad/code/kicad/issues/12770