The error show to the user is
Waiting for build to start...
--build-memory-limit is no longer supported
Check your build engine documentation to set memory limits. Use `docker buildx create` if using the default builder to create a custom builder with appropriate memory limits