Unsupported BisectBatchOnFunctionError parameter for given event source mapping type

Hi,

I’m getting this error ‘Unsupported BisectBatchOnFunctionError parameter for given event source mapping type.’ when creating the AWS lambda event sourcing for kinesis stream.
Its only works when i remove the bisectBatchOnFunctionError & maximumRetryAttempts in the yml config.

Here’s my .yml config

service: es-transaction-processor

provider:
name: aws
runtime: nodejs12.x
region: ap-southeast-1
stackName: es-transaction-processor
profile: sentinel
stage: ${opt:stage, ‘staging’}
timeout: 10

iamRoleStatements:
- Effect: “Allow”
Action:
- kinesis:DescribeStream
- kinesis:DescribeStreamSummary
- kinesis:GetRecords
- kinesis:GetShardIterator
- kinesis:ListShards
- kinesis:ListStreams
- kinesis:SubscribeToShard
- logs:CreateLogGroup
- logs:CreateLogStream
- logs:PutLogEvents
Resource: my-stream-arn

- Effect: "Allow"
  Action:
    - sqs:SendMessage
  Resource: my-sqs-arn

functions:
index-orders:
handler: dist/index.handler
reservedConcurrency: 1
memorySize: 256
events:
- stream:
arn: my-stream-arn
batchSize: 2
startingPosition: TRIM_HORIZON
maximumRetryAttempts: 2
bisectBatchOnFunctionError: true
consumer: true
enabled: true
destinations:
onFailure:
type: sqs
arn: my-sqs-arn