Arduino keeps crashing during serial print

I tried printing A at the beginning of the loop(). It seems to be the Arduino still works, after I removed all the serial.print from inside the ISR. It is the MQTT connection or the internet connection which breaks.