Response: 

You fully understand you are competent at your job and that your boss is generally a nice person, but on the rare occasions he gets mad, you get angry and want to quit.  Yes, I’m afraid that sounds exactly like the immature reaction of the ego mind.  When it flares up like that take a few moments to recenter yourself with some calming breaths and reassure yourself that it is not personal. He is not telling you that you are a bad person or that you are unfit for you job. Do this whenever something like this arises, and eventually your ego will get the message and your wiser self will prevail when similar challenges pop up in the future.

Love,

Deepak