Error: archive/tar: invalid tar header while uploading OVA image to content library

I am trying to upload an OVA image from docker container to vsphere content library using terraform, I am getting the below error. Please let us know what could be issue and if there is a fix for this.

Error: archive/tar: invalid tar header

on content-library.tf line 26, in resource “vsphere_content_library_item” “cisco_router”:
26: resource “vsphere_content_library_item” “cisco_router” {