How large is your tank ? Your water sounds fine.
I know in some animals Meal Worms can cause impaction. Perhaps the Meal Worms were an issue ? I fed mine live worms and Frozen foods.
But never Meal Worms. Freshly molted ( soft) meal worms might be ok. It sounds like you were really trying to feed him well