Hard code block with nested block in front-page.html template

If you insert things the way you want in the editor and then copy and paste them you’ll get the correct output.

The mistake you’ve made here is the / closing the block comment:

<!-- wp:mytheme/herocarousel /-->

Should be:

<!-- wp:mytheme/herocarousel -->

Only use /--> if the block has no content or children.