Word VBA stores up errors and it is not sufficient to simply restart Word. May I suggest that you address the measures at
https://www.gmayor.com/what_to_do_when_word_crashes.htm then reboot the PC and see if the problem remains. If it does, post an example of your code so we can see what the issue might relate to.