Ubuntu-Jammy stemcells cannot compile any package since v1.1033.
The issue is described in the following link: cloudfoundry/bosh-s3cli#65
In short, it seems that a dependency update (bosh-s3cli) triggered a breaking change to S3 compatible blobstores.
Bosh agent cannot reach and fetch resources due to the lack of the region parameter, and when this parameter is set the the compilation fails to upload the blob as the agent may require additional parameters that are not currently configurable.