repair SD-card after Marshmallow
This will fix it. 
https://www.sdcard.org/downloads/formatter_4/eula_windows/index.html
It is the official reformat tool of the people who design sd card standards. I had to do this with my own 200gb sd card that was seen as 16mb after using as internal storage for a phone.