Hello Jenifer Teffani,
The error is consistent with provisioned concurrency being applied to an unqualified function reference rather than a published version or alias. Provisioned concurrency can only be associated with a version or alias, so if the deployment pipeline is targeting $LATEST, the deployment will fail.
Since the problem started after the configuration was manually removed, I would also verify whether the CloudFormation stack and the actual Lambda resources are still in sync. When a provisioned concurrency configuration is deleted outside the deployment process, subsequent deployments can fail while trying to update or remove a resource that no longer exists.
For SAM or CDK deployments, the recommended approach is to publish a version automatically, create or update an alias, and then attach provisioned concurrency to that alias. If you can share whether the pipeline uses SAM, CDK, or raw CloudFormation, it will be easier to identify the exact deployment step causing the exception. If this helps, please accept the answer.
Tracy Le