The way I fixed the issue was I compared a product that did not produce a content encoding error with the product that did. I found that the product causing an issue was missing attributes in the post_meta table. I inserted one attribute for the product int the table and the problem went away on the front end. I found that the products had been inserted using an import tool and somehow some products were not given any attributes and such products are still producing content encoding errors in wp-admin.