The Tanakh isn't at all shy of mentioning the flaws of many of the most famous and looked up to Kings, and for good reasons too. David and Batsheba is one such story as far as I know where David ended up realizing that he sinned, Solomon turned to idol worship (G-d, blessed be He, forbid), and many others. Even Saul consulted I think the witch of Endor to summon Samuel which is forbidden.
My question is then: Are there any Kings who didn't have any major and obvious flaws? Sure, they don't have to be super duper successful rules in the sense of expanding the Kingdom territorially or economically, but in the sense of being decent rulers who didn't sin in any major way.