Now I think it was in the canning process.
Probably not. Food should never be left in the can, once it's opened. Put it in a proper storage container. Also, how long did you leave the can out, before storing it in the fridge? No more than two hours is the recommendation.
It might not of been the enchilada sauce that made you sick, but something else you ate.