Thank you again for keeping on helping. The name of the file I downloaded is Arduino_MKRIoTCarrier-2.0.4.zip so I am guessing it is the right version, unless I am missing something.
In any case I deleted the library I uploaded and I downloaded the file again and uploaded it. And the problem persists.
I have tried other solutions as below:
I closed any sketch window open, incase it was serial comms problem. I closed chrome and restarted it again to release anything that might be using the serial comms. I checked my computer usb comms to check if there is a stray process using it, and nothing.
Anything else that could be causing this probelem. like I said if I upload a sketch to the mkr wifi 1010 coneected to carrier, I have no problem at all. The only issue is the templates, and unfortunately I need them if I want that to work if I want the stundets to follow the instructions.
Thank you again.