@jjot93 and others, one of the reasons I rarely see this issue is that I almost never return anything from an image field but the ID anyway. The reason is that when there are many images on a page, and when you have several custom image sized set up in WP, returning an array of all of the images causes a lot of unnecessary work to be done getting all of the data for all of those different image sizes and this can slow things down. I find it better to get the image ID and then just do the work myself.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users