User error: "0" is an invalid render array key in Drupal\Core\Render\Element::children()
You should return a render array $build. if you want to add a title to the page add title in render array $build.
You can use $build['title'] = [ '#markup' =&gt; 'Yours title goes here ];
and return the $build
and in table element use #header instead of $header