Note: this is an account-scoped Cloudflare backend issue — it reproduces only on affected accounts. On an affected account, ANY Worker with a D1 (or Durable Objects) binding fails at the deployment-creation step; the same Worker with no D1/DO binding deploys fine.
npx wrangler d1 create repro-dband put the returneddatabase_idintowrangler.tomlnpx wrangler deploy