This is definitely a defect. I have seen such on several Mazda CX5. Japan quality control is not that good it seems or maybe they are rushing for order. Minor adjustment should solve the problem but it just takes time.
I will check my CX5 before delivery on such metal parts defects.
Like I said, Mazda should correct them before ship out but they are rush for shipment.