iOS getting the error “Cannot access selected directory: file:///private/var/mobile/Library/Mobile%20Documents/com~apple~CloudDocs/”

I keep getting the following error on iOS no matter what I do:
Cannot access selected directory: file:///private/var/mobile/Library/Mobile%20Documents/com~apple~CloudDocs/

I have tripled checked icloud permissions for the App as well as followed other instructions like cleaning up logseq folders and restarting the app at each step. Nothing seems to work.

Heck! I have even looked at the code and seems like the folder path its looking for doesn’t match with the path in the error. So the error makes sense. But I don’t know how to fix the icloud path.

Please help.