The first sketch fails here to compile as I don't have that lib installed but the second compiles just fine for a Mini and MKR1000 under IDE 1.6.12 with boards version 1.6.7 for MKR and 1.6.13 for AVR. (found by going TOOLS, Board, Boards Manager)
I suspect a wiring or a voltage supply / current issue at the moment.
Maybe double check your wiring first and then if that is OK maybe supply the LED's with thier own power with only a common ground back to the MKR
Schematics ?
Decent quality pictures ?
Source web site links ?
Have you also checked that all your libs are up to date too ?
Libraries sources links ?