This error happens if you don't give the Termux permission to access your device storage. You can solve this error by simply allowing Termux to access the storage by going through 'App info>App permissions'.
Or you can do this by entering this command on Termux-
This will show a popup asking for allowing storage access to Termux. Allow that and you should be able to access the storage using the command-
Managed & maintained by M Digital Media Group.Powered by Pulin Deori