Yeah unfortunately this has been a problem I've had for a few years now with Messages. Sometimes I get notified right away, other times it just never notifies me and I don't see it until much later.
I feel terrible when it happens, so I try to make a habit of checking often.😔