I see it's there but it doesn't work, still get the same issue. Maybe it only excludes top level folders in each app folder? Your 'vendor' folder sits in the 'sources' folder. If I change to :
$excludeDirs = [ 'hooks', 'setup', 'dev', 'sources' ];
it works and doesn't cause a php-fpm: pool spike on my end.
until