There are two ways of fixing this problem:
First confirm this value:
show global variables like '%table_definition_cache%';
Then increase the value:
set global table_definition_cache = 4000;
or
'options' => [ \PDO::ATTR_EMULATE_PREPARES => true ]