Machine stops engraving or cutting and goes home

I get a D:\ Directory name is invalid box that pops up on the screen and the machine stops. Any ideas?