Simulink model upload to arduino issue

Hello everyone,
I have an issue uploading a matlab model into an arduino. Model is functional, it was uploaded in an arduino board which got damaged and needs to be replaced.
This is the model,


This are the support packages that matlab asked to install for uploading,

And this is the error,

Can someone please help me with this issue?.
Thank you.

P.S. port and arduino board is chosen correctly, I tried to upload a simple blinking LED it worked well.

To be honest, this does not sound like an Arduino problem. It's possible no-one here will have the expertise to help you. Is there a MATLAB forum where you could ask the question?

Thank you for the response, yes there is and I am also digging there.

Did you try clicking the first of the two Fix buttons shown in the error message?

Yes I did, even manually implemented those solutions and the result was another issue.
the following one