If you hand in your notice you are classed as having made yourself voluntarily unemployed and you could face up to 26 weeks before you are entitled to claim any benefits. One of the exceptions to this rule is if you have to leave work on medical grounds (including workplace stress). What is your GP putting on your sick notes as your reason for absence?
I would seek advice from either your local jobcentre or the citizens advice bureau before you hand your notice in.