Reproduced with Helm 3.18.2: tag: indented one space less than repository: printed yaml: line 2: did not find expected key, although the bad line was line 3. memory: indented one space less than cpu: printed line 3 for a mistake on line 4. The number points at the last good line, so look at the line after it.
A key written at the list's indent after a list item printed did not find expected '-' indicator: the parser expected another item.
PyYAML 6.0.3 named the bad line itself for the same file: line 4, column 4. An unclosed double quote produced a different message, found unexpected end of stream, at a line number past the end of the file.