This is an old problem. It's the SAME the Samsung Galaxy S3 had. I've ruined multiple sd cards from all brands that used to work fine with others devices for years.
It's clearly a hardware problem that they couldn't fix.
it has nothing to do with marshmallow or a bad card tray. If you don't...