I run into similar issue on my Mac and figured out the rootcause to be ".DS_Store" file whose content got sneaked into yaml when helm generate them. Deleting it resolves the problem.