Those two areas don't appear to be particularly significant in terms of operation. And both could have been damaged by, in the first case, a squeeze while removing or adding a battery, or in the second photo, just opening the leg if the parts weren't't perfectly aligned, or a bump on hard material.
I have seen others with the crack by the battery on this forum. These are plastic parts and they are not always perfectly formed to begin with.
After a few crashes with my drone, I have one leg that is slightly bent, but it doesn't seem to affect performance, and it's very minor. I can't see how these things you are showing would affect performance.
One thing to be careful of is to support the airframe when changing the battery. Don't set it on the ground and add or remove the battery. It takes a lot of force and pressure to do that, so you want to be sure you don't put that pressure on the legs.