Thank you for contacting JustAnswer.
I am sorry to hear about the problems you are experiencing. Everyone has a bad day from time to time, including parents. Remember that it is not necessary to be a perfect parent, just good enough. Perfect parents would not be good for children since they would compare themselves to their parent and always come up lacking in comparison. One thing you can do when you make mistakes is to model how to handle them. This involves apologizing, taking responsibility for the mistake and setting things right and learning from the mistake and not repeating the pattern. This will set the example for your son of what to do when he makes mistakes. An honest discussion of how you regret your actions and allowing him to express his feelings related to what happened can go a long way toward setting things right.
I hope this answer is helpful. Please let me know if I can clarify further.