The only Sandisk SSDs with a 512GB capacity that I can find are 2.5" regular SATA drives, they do not use the M.2 format. That is why I said that the two drives would not fit into one enclosure. If both drives are indeed the smaller format B or M keyed M.2 drives, then you could use the case Bushfiva linked to, or the one in your original post, but the rest of my advise still stands: check whether there is any life left in them first.