Hi, Umang,
Sorry to hear you're experiencing this issue.
Most hard drive manufacturers have a tool to check the health of the hard drive and format the disk when you are not able to do it on Windows, go to your hard drive manufacturer's website and check if this tool is available.
If you cannot find the tool on your hard drive manufacturer's website, you can use the SeaTools it includes several tests that will examine the physical media on your Seagate, Maxtor or Samsung disk drive and any non-Seagate disk drive.
You can see more information and download the SeaTools at these links.
https://www.seagate.com/files/www-content/suppo...
https://www.seagate.com/files/www-content/suppo...
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.