Do u use two heading packages (Hydra, Chomp) at the same time? Perhaps there are no guarantee to use two packages as-is.
But u could convert type (content → string) via a simple script:
#let _to-string(content,) = {
if content == none { "" }
else if type(content) == str { content }
else if type(content) == array {content.map(_to-string).join(", ")}
else if content.has("text") { content.text }
else if content.has("children") {
if content.children.len() == 0 { "" }
else { content.children.map(_to-string).join("") }}
else if content.has("child") { _to-string(content.child) }
else if content.has("body") { _to-string(_to-string(content.body))}
else if content == [] { "" }
else if content == [ ] { " " }
else if content.func() == ref { "_ref_" }
else {let offending = content; ""}}