Just reading up on NAS Drives, it might also be the type of connection. SMB is preferred over AFP on the M1s. This is a technical issue between your NAS model and your M1 mac, which might be best answered in a Mac NAS forums for whatever NAS make you have, or best worked out with their support.
but have to copy the files to local folder to open. on my imac i can open them directly.
"Technical Support strongly recommends working in Photoshop directly on the local hard disk. To prevent data loss, save files to your hard disk first. Then transfer them to the network or removable drive in the Finder or in Windows Explorer. To retrieve files, copy them in the Finder or in Windows Explorer from the network or removable drive to your hard disk. You can then open the files in Photoshop. This workflow avoids problems that occur when network system setups or removable media device drivers are incompatible with the operating system or Photoshop."
Please read this help file to see why Adobe does not support working directly off a network or removeable drive: