Can't share uiimage to story Instagram only. Just on iOS 17 and 18

I have a problem if i share photos as uiimage use code "UIImage.makeImage" this code run on iOS 15, 16 normally but if i share on iOS 17,18 to instagram story have error "Something went wrong". This case only error on Instagram story but Instagram post it's normal. Can anyone help me ? is it bug on instagram?

You should post the code for UIImage.makeImage() as thats not a method provided by the SDK. Any additional information you can provide would also be potentially helpful.

Can't share uiimage to story Instagram only. Just on iOS 17 and 18
 
 
Q