In my own opinion, There is no such thing as “Bad Mother”. They’re just people and people do a whole variety of things - good, bad and neutral.
A “Bad mother” is just a fantasy and an abstraction. The meaningful question is not " Am I a good or bad mother?" but rather “What are my relative skills and weaknesses and what can I do to improve?” If you can stop punishing yourself with the statement “I am a bad mother”, you will be much better off and you can start working toward helping your child do better as well.
You don’t have to hate your whole self if there is a particular thing you find you dislike about your child. You can try to define that problem and attack that problem and work toward solving it.