How do I trace back errors to the resource that caused it?

I’ve been using Terraform for a while, but there’s one thing that has always bugged me.

If your resources error, you get an output like this:

Error: [ERR]: Error building changeset: InvalidChangeBatch: [Invalid Resource Record: FATAL problem: DomainLabelTooLong (Domain label is too long) encountered with 'arn:aws:elasticloadbalancing:eu-west-2:<snip>:loadbalancer', Unparseable CNAME encountered]
        status code: 400, request id: <snip>

But because many of the resources are created at the same time, it isn’t very obvious which resource caused this error. This is a rather large module with several load balancers, and it could be any one of them.

Is there a way to see which specific resource being created/changed returned this error?

(To clarify, I know the issue here - this was just an example error I had on hand)