I have a feeling you are missing an important fact about YAML files.
Why does YAML forbid tabs?
Tabs have been outlawed since they are treated differently by different editors and tools. And since indentation is so critical to proper interpretation of YAML, this issue is just too tricky to even attempt.
I don’t know what text editor you are using to edit the file, but I suspect you are using tab to create what visually looks like the correct number of spaces to you, but is not the correct number of spaces.
That is, when you edit, use the space bar and not tab.