Wow maybe you need to seek help with managing your anger. At 6 months he really is still a baby and is going to have accidents. I have a 3 1/2 year old furbaby who still has accidents around the house, but that's just what it is an accident and accidents do happen. I'm not going to hit her just a firm no pick her up and place her where she's supposed to potty. They are dogs and not people and so they can't understand why you yell, shake and hit it just confuses and scares them

. Puppy are a lot of work and it can definitely get a little overwhelming, perhaps this is a bad time in your life and do not have the patience to deal with having a puppy. Maybe it would be in the best interest of this puppy to be rehomed.