Use
System rescue cd and format your drive from there, it is linux based, so pretty much every windows error do not apply. If you have any files you would like to have, you can move those files from within that application itself (it's pretty much an OS on a disk/USB drive) if I'm not mistaken.
Afterwards install W7/XP back, this time from either a disk or an usb drive.