It sounds like the cause of this is special characters in the category names.
Is this still happening with categories with special characters in the name? Have you noticed any characters other than the single quote cause the same problem?
🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights
See * Shop Categories are empty. for more info. :)