Arduino MKR GSM 1400 fails to start up without Serial Monitor
while(!Serial) {} will wait for a serial connection and in your program will block execution until it gets one.
Remove it and your program should continue without the serial monitor.