If the ssd shows up before you put the cover back on but then disappears when it's replaced, it may be that the metal cover is contacting the ssd and short circuiting something causing the ssd to not function properly. Maybe check the ssd is install such that the cover doesn't touch it when replaced.