When the modem gets stuck, are you able to communicate using USB or is it not responding with USB also?
What exactly the modem is doing apart from sending sms? is it in field?. seems to be really strange behavior.
using USB for a longer period of time instead of UART causes issues??