My phone shows this desync between the step counter and the timeline. The timeline is right. My Vivomove 3S shows the lower value. The counter still counts new steps.
A possible trigger for this bug may have been that the date on my Fairphone 3 briefly jumped to July 2023 while trying to fix its mobile network connectivity. The 5k are about right for the steps since changing the date back and forth.