They're "valid" QR codes only in the sense that many QR scanner software only measure a small part of the middle of each square instead of averaging the brightness of the whole square.
That makes sense. Nice trick imo and "valid" enough for me :)
It's okay if it fails for some users as it will work for many.
Maybe makes QR codes a bit more engaging!