The XT5's video autofocus can be pretty finicky, especially in auto mode when there's fast movement. The first thing I'd try is switching between different autofocus modes (single zone, wide zone, etc.) because some work better than others depending on what you're filming - for example, if you're tracking someone walking, wide zone usually works better than single point. Also check your frame rate and lighting, because autofocus behaves differently in low light conditions. If you try various settings and it keeps losing focus constantly in the same situations, then there could be an issue with the sensor or focus motor, but most likely it's just a matter of finding the configuration that works for your type of video.