I've read studies that suggest that they do best around 60-75% RH. Having said that, I wouldn't add any moisture beyond that contained in vegetables. Low humidity is almost certainly not the cause of the mortality you're seeing and adding moisture will inevitably lead to catastrophe in the colony. The larvae have specialized organs in their behinds that draw moisture directly from the air and the
pupae are very resistant to desiccation. I live in one of the driest places on the planet (this is the humid season here and the humidity is 25% right now) and I don't have these kinds of issues. Generally, I would look to diet for answers. Failure to complete metamorphosis is often related to something lacking in the diet or something inhibiting development. Do you have them on wheat bran or oats?
Are you washing the vegetables well before feeding them or feeding organic? Finally, I wonder about the source of your stock. Sometimes distributors will treat mealworms with juvenile hormone which inhibits metamorphosis (they're often sold as giant or super mealworms). Depending on the dosage they got, you can see lots of mortality in the older larvae and pupae. Sometimes they will pupate and complete metamorphosis, but they generally don't reproduce. Besides the pupal deaths, do you have many that are turning into beetles?