Probably a mix of both, but I’d still lean toward it being an EU thing. The prequels themselves kind of portray the Jedi as being right for all their dumbass rules and ideas.
Dooku wasn’t the good guy Sith who had an actually genuine criticism of the Jedi and Republic, you’re right in saying it’s just standard bad guy talk.
Anakin’s deviation from the Jedi code is portrayed as him being wrong.