A large number of spaces and illegal name characters prevent the glyph from being exported

How to batch modify glyph names in Glyphs?

Why would you add a lot spaces to glyph names?
You can search and replace in glyph names from font view.

How to search for glyphs with spaces in their names?

I tried regular expressions but it didn’t work.

Try either the search field in the top left, or find and replace using Cmd+F.

All my shortcut keys have disappeared.