It is most likely causing warnings in the background. I’m pretty sure that when the gallery is retrieved it uses the php function getimagesize() and using this function on non image files usually causes warnings. They generally won’t be a problem unless you turn on error display.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users