One of the elements could be loose and with movement, the element falls in and out of alignment causing the issue you mention.
I had a Nikon 17-55 that suffered from this. It is most likely to occur from impact but could be a Q&A issue as well.
As Elsa says, best to take it back rather than deliberate on the forum. ODP’s after sales service is excellent.