I got this error after upgrading to Drupal 9.4. Seemed an error caused by a custom views field.

Possible solution

Use the following patch to fix the problem: https://www.drupal.org/files/issues/2021-12-10/3253568-18.patch

Topic: https://www.drupal.org/project/drupal/issues/3253568