Unable to Install kube-prometheus-stack on Kubernetes Cluster

I am trying to install the kube-prometheus-stack on my Kubernetes cluster but unfortunately i get

Error: INSTALLATION FAILED: YAML parse error on kube-prometheus-stack/templates/exporters/kube-etcd/servicemonitor.yaml: error converting YAML to JSON: yaml: line 19: mapping values are not allowed in this context

Any Idea what i am doing wrong?

I’m tying to install the version 72.3.0
My helm version is 3.18.0-rc.1

My Kubernetes details (Oracle Kubernetes Engine)
Client Version: v1.29.0
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.3+3.el8

I had the same issue. Turns out I was using a Helm release candidate version v3.18.0-rc.2 (and not the most recent stable version, v3.17.3).

Downgrading to 3.17.3 resolved the issue.