TypeError thrown

Argument 1 passed to Yoast\WP\SEO\Builders\Indexable_Hierarchy_Builder::is_invalid_ancestor() must be an instance of Yoast\WP\SEO\Models\Indexable, bool given, called in /nas/content/live/janineturner/wp-content/plugins/wordpress-seo/src/builders/indexable-hierarchy-builder.php on line 180