I actually copied your code, and tried it. My Arduino keeps resetting, and printing garbage. I move the for loop from the loop() function to setup(), and it still resets.
Then, I moved the ERR_300 and ERR_301 variables to global scope, and the Arduino sent valid data to the serial monitor, and stopped resetting.
######################################################
Starting......
######################################################
Err#=<300> Err mess=<Phone failure>
Err#=<301> Err mess=<SMS service of phone reserved>