If there is an error then it has to do with something else. This is the correct way to get field values from a term. You can also supply the term object. https://www.advancedcustomfields.com/resources/adding-fields-taxonomy-term/
Do you have the image field set to return a URL? https://www.advancedcustomfields.com/resources/image/