Recently (the past few weeks), the in-built unread SMS notifications function has been correctly detecting new unread SMS messages, but has not been detecting when they have been read. Thus, it simply increments the number indefinitely.
I have found a temporary solution by changing the formula from the default from $uc(sms)$ to $ni(pcount, com.google.android.apps.messaging)$.