Disable the auto restart (F8 menu) , to see the error.
How are you trying to format?
At the windows setup screen?
Try by recovery console(cmd), using commands:
format your_drive_letter:\ /q
If it IS your hardware, see in bios if you have something listed as unknown or that isn't detected.
U may eventually need to stick your nose (and screw driver
) inside your PC.