I know that this might be a little late. I have a D5600 and had the same problem with a card in the camera. I was able to read it in a card reader connected to a computer without any problems. I copied it to a hard drive to save the data. When I put it back into the camera I could not even format it because it was not recognized. I was able format it with the computer and use it with out any problems but when I put in in the camera, no luck. It went into the trash.
Did you try it with a card reader attached to a computer?