TypeError thrown

Argument 1 passed to CPO\Domain\Presenter\CountryPresenter::make() must be an instance of WP_Term, instance of WP_Error given, called in /home/confemen/www/confemen_prod/www/wp-content/themes/confemen/functions.php on line 893