Recently my SD card, formatted as internal storage, got inaccessible for the phone (Moto G5) for some reason.
If "Forget SD card" option was selected, does it wipe out the SD card encryption key from /data/misc/vold
?
Does it make sense to root the phone and try to extract the key?