If you need the data that’s on the drive then I recommend you don’t try to format it since this will delete all the data from the drive. It may be possible to still extract the data utilizing data recovery software. There are several kinds of Data Recovery software available. If you do a web search for Data Recovery it will yield plenty of data recovery software options.
If this does not work then you should contact a data recovery company.