Nano BLE Bootloader Crash?

const int analogInPin10 = 10; sensorOutValue = analogRead(analogInPin10);
The Nano33 BLE is not happy trying to analogRead() a digital pin. Why do you think 10 is an analog pin?

Change 10 to A0:A7 and the board behaves much better.