I have also handed in a resignation at my present employer due to it not being the right fit. The culture of the work place and the work ethics I have learned in my line of work do not match. What the management of my present employer does, does not match what I have always been taught SHOULD be done. So, I am leaving my present job also. The press and conflict has already placed me in hospital twice.
You are doing the right thing. No job is worth keeping if it leads to an unhealthy relationship. It is not your fault. It is not my fault. It is simply a difference of personalities. Good luck in your future endeavours. I'm hoping for better things for both of us.