Every few days, as preventive maintenance, I first restart the L5 then followed by sudo mmcli -m any --messaging-list-sms to check for stuck SMS. I then delete any stuck messages.
Many times, a few undelivered SMS then are received immediately after this maintenance.