Re-tested: Issues are still the same for (ODK) Collect 2023.3.
If you use default instead of calculation, it works well (for ODK): the invalid default values are not set. But there is no error message or warning from the Online validator. And there is special problem in KoboToolbox, when the default contains brackets, see Default with brackets gives deployment error (Kobo Collect).