I have 6 weeks to hand in my Thesis. Should I quit?
If your supervisor is looking at you and your work and says your health is more important, you should at least give that statement serious consideration. They are probably the only person who knows enough about both you and your work to be able to make a reasonable judgement (it really sounds like you are not in a good frame of mind to judge for yourself).

An alternative approach, at least for a couple of hours, would be to find out whether you can get an extension, given the impact this has had on your health.