If anyone is encountering this issue, go to System Settings -> Privacy & Security -> Full Disk Access. Make sure Android Studio is full disk access.