If you have multiple profiles, it might be worth checking to see if some of the tracks were played under a different one. The profile who picked the music is the profile who gets the entry in their history. All of the history views are per-profile.
Usually when I feel like I’m missing history, it’s because the profile was wrong. Also possible that there’s a bug, of course. if so, @mike and @vova will investigate.
Had the same today.
Constantly playing music this morning. History has a gap of maybe an hour.
All missing songs were from Tidal and not in my collection.
Not really a problem for me, but I want to mention it.