I received this response from Apple. I just wanted to post it here in case anyone else is encountering this:
Thanks for sharing your post and the code. The error message you're encountering on the console, "[ERROR] Could not create a bookmark: NSError: Cocoa 4097 "connection to service named com.apple.FileProvider", is a known issue. It's related to the FileProvider framework and is scheduled to be resolved in a future version of iOS. Rest assured, this error:
It's primarily a debug-time message and can be safely ignored. We appreciate you bringing this to our attention. If you encounter any other issues, please don't hesitate to reach out.