Hi there, I can't think what could be wrong but try moving them.
I keep my meal worms in wheat bran. I put in potato and carrot. They are in clear plastic containers(don't know if you have them but they are those file type draw containers that have up to 4 draws) in a room thats around 20/21 degrees. The room has normal day lighting and even gets a bit of sun at one part of the day. When the worms turn to Pupa then I put them in another clear plastic container with the wheat bran, they don't eat but its there ready for when they do. I have had the odd one die but not many. I can't think what could be going wrong but try moving them. Make sure they are dry. They get enough moisture from the potato and carrot.
I hope this will help in some way. Let me no how you get on. All the best.![]()