Ramires was sent off in injury time for a two-footed lunge on El Ahmadi which Lambert described as a "leg-breaker" - adding that the midfielder was lucky to escape with just a sore shin.
Lambert told Villa's official website: "If Karim comes in from another angle, he breaks his leg. It was shocking. He has got a sore one but thankfully he's okay.
"He has a sore one on his shin. It certainly could have been worse."