Is this a helmet defect or not?
The jagged and uneven edges you are seeing around the straps are merely cosmetic. At best they are at the minimum tolerance for manufacturing quality and at worst are an isolated case of tolerances going wrong during production.
Either way, as long as the integrity of the foam in the helmet is not compromised (by virtue of crashing or the like), then it is safe to use. Happy riding!