Something weird about your setup.
You have a S3 CDN setup, but it is on the same URL as the bucket?
data-s3-cdn="https://discourse-dev.assets.schwarz"
data-s3-base-url="//discourse-dev.assets.schwarz"
Comparing with Meta:
data-s3-cdn="https://d11a6trkgmumsb.cloudfront.net"
data-s3-base-url="//assets-meta-cdck-prod-meta.s3.dualstack.us-west-1.amazonaws.com"
The code that load dynamic scripts will try to replace the S3_BASE_URL for S3_CDN: