Remove the spaces before #+name OR take out the '- item' and org-export-dispatch succeeds.
As is, it fails with org-element-paragraph-parser: Invalid search bound (wrong side of point) ,---- | * export dispatcher | | - item | | #+name: xyz | #+BEGIN_SRC emacs-lisp | (pwd) | #+END_SRC `----