How to replace SD card formatted as internal storage? I need help..

I have a redmi 4a device, with android 7,
 I formatted a 64 gb ADATA SD card as internal storage, worked great for long, until after a restart the SD card is corrupted with precious data on it..

It says tap to format, but it doesn't format, I tried on my laptop and windows cd and Easeus partition manager, but none worked..

I lost hope to fix the SD card, but the phone isn't accepting to show photos or store any data, even with new card identical to the old is mounted.. it says unmount usb storage..
When I try to see a photo status on whatsapp, says can't download because no internal storage is available, please unmount it as a disk drive, and try again..
Also I can't see any picture sent to me in chat..

I tried to format the new card as internal, but same problem..

Any help?
In general fixing an sd-card with corrupt data should be done on raw disk not on partition level, overwriting potential corrupt partition data. 

Assuming that the sd-card is physically fully working the best way to reset it is by overwriting the first blocks with zeros. 

Unfortunately I don't know a good erase tool that works on Windows and that works on RAW disk level. On Linux this can be easily done using dd writing to the block device of the sdcard (e.g. sdb, sdc or something like this).

For Windows the Hex editor HxD may be an alternative if you know what you are doing. It allows to open the full disk in read-write mode and then you can overwrite the first few kilobytes. Just make sure you are writing to the correct disk (and not overwriting e.g. your main HDD/SSD). 

Once you have managed to reset the sd-card eject it and then re-insert it. Then format it on the PC and apply then test it using the tool H2Testw. It fills the sd-card with dummy data and then verifies if the all the written data can be read.