Invalid value "persisted", Options are : ["memory","persisted"] in 7.9.2 logstash

In 7.9.2 version of logstash, when logstash is run using pipelines.yml, an error occurs saying
"Invalid value \"persisted#\". Options are : \"persisted\", \"memory\" ".

The error occurs in settings.rb file validate(value) function.

In logstash.yml, the configurations are made properly as follows:
queue.type: persisted

Tried different variations for this configuration, still the same error comes up:
queue.type: "persisted"
queue.type: "memory"

Also, commented out this line. The error still persists.

Please provide any suggestions on how this issue can be resolved.

Thanks, in advance.