Unable to deploy AWS service with fallback (wildcard) HTTP event

I have AWS service with a number of functions triggered by API Gateway (i.e. http) events. The service deploys without errors.

I added a fallback route to capture all incorrect requests, e.g.

...
provider
  name: was
  ...
functions:
  Trap:
    handler: src/api/trap.handler
    events:
      - http:
          path: /{any+}
          method: ANY

it works with serverless-offline but I deploy it via npx sls deploy it fails.

Implementation of src/api/trap is to throw 404 error.

Is there a fundamental reason for deployment failure or does it have something to do with the specifics of my project?

Versions:

    "serverless": "^2.69.1",
    "serverless-apigw-binary": "^0.4.4",
    "serverless-offline": "^8.2.0",
    "serverless-plugin-split-stacks": "^1.9.3",
    "serverless-pseudo-parameters": "^2.5.0",
    "serverless-webpack": "^5.6.0",