Program Upload issue on MKRZERO

Doing the double reset button to run the bootloader did the trick - now able to successfully upload the sketches.
I already had minimised most of the procedures within the sketches, but with no success - but at least when I go back to the full code, gradually, I'll be able to see if it is my code that is causing the issue.
Thank you for your excellent help.