Solved - The directory name is invalid error when opening file in Windows
This error prevents files from the fodler from being accessed, even though the folder is accessible.
Step 1: Create a new folder in a location which is convenient.
Step 2: Then navigate inside the error folder and move or copy all the files from the folder to the new folder created in Step 1. If there are folders inside this folder try recreating the directory structure manually in the new folder location and keep copying the files alone.
Now it should be accessible.