I was also getting the "Custom zones are not allowed. in the public DB" message when no custom zone had been created on every run of the app I was developing except for the the first run, so it sounds broadly similar to your issue. Xcode 13.1 was installed this morning, and it was still an issue, but when I also upgraded my test device to iOS 15.1 the issue now appears to have cleared and I can sync to the public database again. Don't know if it was iOS 15.1 or the combination of the two.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: