and try to format it in another machine or in an external enclosure.

My guess is there is a rather big chance it will fail also. But your only way of finding out is by trying it.

Kees