AWS OTA on mm6108-ekh05 (STM32U585)

Where did you get this code from?

Can you use a debugger to find out where the above log is coming from? That may give us some idea about why the file close failed.