Loss of spaces between words

I’m having an issue where, after a compile, some of the spaces between my words are lost. The result is that some of the words string together without spaces. Such as “Harrywenttothestore” and stuff like that. It usually happens in and around words I’ve asked Scrivener to learn because of odd spellings (Proper names and such). Is there a fix for this? My word count is off by thousands and it’s going to take me a long time to go into my manuscript and hand space all of these.

I am compiling to docx. I’m not sure that makes a difference.

If you got to Format>Options>Show Invisibles do the spaces around those words in the editor look like every other space?

If you compile to PDF, for example, are the spaces OK? Have you tried compiling to RTF and then opening that in Word?