we need to validate that the nesting hierarchy is valid with respect to the Message schema. for example, `react-dom` validates DOM nesting based on [these rules](https://github.com/facebook/react/blob/master/packages/react-dom/src/client/validateDOMNesting.js#L217)