OK so what jumps out at me is the substrate
Cories love to snuzzle in the sand, they sift sand when feeding, they love to play in sand where they can dig up food that other fish have missed
Your aquarium is missing sand
Even micro-gravel is better than the standard gravel that you appear to have. They cannot snuzzle what are - to them - rocks when finding their food. Even smooth gravel like yours can hurt them and stress them out...which in turn, along with the inability to snuzzle for food, causes stress, barbel injury and eventual malnutrition and death
You don't have to change out all the substrate....to make a beach of about 25% of the space, just get an old plastic 2 litre bottle (if old fizzy bottle make sure it is thoroughly cleaned out), cut the bottom off the bottle, turn upside down and use the neck of the bottle to first move the substrate away to leave a clear part of the glass bottom, then slowly and very very gently pour sand down through the bottle, slowly moving it about 1 inch above the glass bottom to fill your beach space with sand.
You will find that the Cories will instinctively go to that sandy beach area to feed and to cluster when resting.