DocumentPicker exportString stopped functioning after iOS upgrade to 16.0

After iOS upgrade to 16.0, DocumentPicker.exportString(filecontent, filename) stopped functioning.

Before 16.0 iOS update, I was using this function to export the contents to Google Driver folder. But after the update, DocumentPicker.exportString(filecontent, filename) is not able to export the filecontents to google drive folder, and not even able to export within iPhone storage.

Please help.