I've noticed a case where my inbox icon indicated an unread message (1 in red), but no messages were shown under "unread":
I don't know how to reproduce. Maybe it's because I was already on the page where the new message came from.
My network was fine. Chrome version 108.0.5359.125 (Official Build) (64-bit) on Windows 10.