It's a raytheon ATFLIR[0]. The rotation precisely matches the point at which the 'up-down' tracking reaches it's upper stop and the body of the pod has to rotate. The concensus was that it's some internal reflection within the pod window.
https://www.metabunk.org/nyt-gimbal-video-of-u-s-navy-jet-en...
But there was also discussion on skeptics.com and skepticforum.com when it was news last year.
Also note that the organisation that released the videos is a known scammer who has been caught trying to monetize the UFO community many times.