Error: Faild to write plan

Error: Faild to write plan
The plan file could not be written: failed to write state snapshot: Faild to serialize resource instance in state: Instance module.app_service.data.azurerm_app_service_plan[0] has status ObjectPlanned, which cannot be saved in state.

Already used following docs below:

I have the same error whilst trying to create a subscription in Azure:

│ Error: Failed to write plan file │ │ The plan file could not be written: failed to write state snapshot: Failed │ to serialize resource instance in state: Instance │ module.xyz.Subscription has status │ ObjectPlanned, which cannot be saved in state..

Terraform Version - Terraform v1.4.2 on linux_amd64.

Any and all help appreciated!