If you have Terraform reporting an error but want more information, then you can configure debug logging.
How to configure Bash
export TF_LOG="TRACE"
export TF_LOG_PATH="terraform.txt"
How to configure PowerShell
$env:TF_LOG="TRACE"
$env:TF_LOG_PATH="terraform.txt"