Many users report after updating or migrating to a Drupal version like Drupal core 9.5.7 or above, the following error gets reported in different shades of it in detail:
TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, array given in htmlspecialchars() (line 432 of core\lib\Drupal\Component\Utility\Html.php)
The original reporter provided an error output showing that some Views field formatting has caused the error in his case. Others reported to have a WSOD now making the site not maintainable no more.
After collecting some user reports it finally turned out quickly that this issue can turn into a collection basin quickly for the same TypeError message but for different reasons and causes in each of the cases.
Users humbling over this issue by searching for a fix should read carefully from #17 and below how to test what this TypeError has caused in each individual case and should report it in the respective issue queue of the project causing this.
What this issue should be about is to add an Exception in case if Argument is_array like started from #30 and below.