The Dunning-Kruger effect would apply just as much to a specialist as it would a generalist. No matter how specialized one gets, there’s always the possible cognitive bias that they think they know more than they do. There’s also the risk of tunnel vision and compartmentalization, where the specialist, unaware of of relevant information existing in some other silo continues to try to fit round pegs into square holes.