An actor friend had the same problem when playing bad guys. One of his mentors said to find something he liked about the character and play with that. In one case he liked the character's twisted sense of humor. In another, the character was a real psycho, but adored his cat.
You may want to study up on literary anti-heroes. Hannibal Lector is an utter tool, yet people
like him, at least they do the film version. As awful as he was, he was fond of Clarice.
But don't go overboard on the flaws. I especially dislike sarcastic people, having had to share a room with such a specimen at a convention. Her "Here's a quarter, call for a clue" reply to reasonable questions got old fast. The one time she shut up was when I burst into the room and turned on the TV and told the others to quiet down and listen. Her "Why the **** should we?" dried up as the video of Princess Di's death came on finally showed her to all to be an unlikable fool.
Overdoing flaws grated on an editor friend who does critiques. The heroine of an urban fantasy was so heavy with the snark and clever turns of mean phrase that she reached her limit on page one. She thought the writer was attempting to imitate other writers with clever, snarky heroines, and left the brakes off.
I like a flawed hero, but she can't be kicking babies as an introduction. A better alternative to baby kicking is disliking the noise they make and their habit of puking on one's nice clothes. That's something most readers can identify with.
For a flawed, likeable hero, you might try the Dortmunder novels by the late and much lamented Donald Westlake. Dortmunder is often the perennial loser as he guides his gang of thieves through heists that go wrong. He's got a mournful, pessimist's outlook on life, but somehow gets through the day in spite of well-meaning help from his eccentric crew.
Many of the books were made into movies, but it's best to read the originals to see how a skilled writer walked that tightrope between crime and hilarity with this character.
Another flawed hero is Miles Vorkosigan, a 4-foot nine guy on a planet of 6 footers who think his short stature is catching. Miles is brilliant but hyperactive, lots of energy--or it could be manic-depression--but inexperienced, a natural born con artist when needed. Lois McMaster Bujold won a number of Hugo awards with that series.
It's good to pose questions on how to write such people, but far better to ransack the library and see how other writers did it. It's all the difference between
telling and
showing.