That look like a Derasa that have been doing poorly for a long time. Inside the shell even have coraline algae. I did not know that clam can shrink and get smaller., but it seem like hat is what going on.
Something got to really be wrong with your water parameter, maybe trace element. Consider large water change or get him to a different environment/tank.