Unexpected error when deploying GSI autoscaling target

We are configuring DynamoDB autoscaling on many of our tables and regularly run into an error, like the one below:

Error: Provider produced inconsistent result after apply

When applying changes to
provider “registry.terraform.io/-/aws” produced an unexpected new value for
was present, but now absent.

This is a bug in the provider, which should be reported in the provider’s own
issue tracker.

We are using two modules to create the autoscaling targets and policies: one module for tables and one for GSIs.
The error always is followed by an error from AWS on creating an autoscaling target for a table:

Error: Error creating application autoscaling target: ConcurrentUpdateException: You already have a pending update to an Auto Scaling resource.
status code: 400, request id: 20cdf5a9-0803-4ac6-944e-732cede8e730

on common/dynamodb-table-autoscaling/default-table-autoscaling.tf line 1, in resource “aws_appautoscaling_target” “dynamodb_table_read_target”:
1: resource “aws_appautoscaling_target” “dynamodb_table_read_target” {

Is this indeed a bug, like suggested in the first error message?

Thanks in advance.