Ss pin for arduino nano 33 iot

...after putting the debug lines back in? You said you removed them...

If it doesn't reach that line, then the initialization is failing...