so you can simply do
echo “
“;
instead of wp_get_attachment_image_src or wp_get_attachment_image
you dont need to get the attachment via the function call.
check what your acf image field is set to in the group as a return value, there are options like ‘object’, ‘id’ etc, what do you have it set to. I believe you have it set to url.
If you set it to id, i believe the previous code will work.