But as for Trek having some authors who really didn't know what they were writing about, I think it would be safe to put Robert Shelley at the top of that list. I've never read another of his books, but after reading The Laertian Gamble, I'm not too sure if I want to track down another of his books, even though he's apparently some sci-fi giant.
His name was Robert Sheckley, and yes, he was one of the greats of SF since before Star Trek
existed. His work was generally comical and absurdist, and I think some readers mistake his surreal, absurd take on DS9 in The Laertian Gamble
for ignorance or incompetence. That said, I doubt it was one of his better works.