For me I did the following steps, though it didn't solve the issue, but I could see the content of the data via terminal and in case I need to download the file can do that as well.
Step 1 : Check if adb exist in this path
ls ~/Library/Android/sdk/platform-tools/
Step 2: In case it does Add adb
to Your PATH
nano ~/.zshrc
add the path to this via : export PATH=$PATH:$HOME/Library/Android/sdk/platform-tools
reload the shell config : source ~/.zshrc
Step3 : run adb devices
to check your mobile connected
Step 4: run a similar command to extract a particular file from the data
Example :
adb shell run-as com.process-xyz.demoapp cat files/Logs_Generated_kv_Linux.txt > output.txt