MR60BHA1 arduino sleep_inf intermittant data issue

Firmware: UART_MR60BHA1-230104
Example: MR60BHA1_Sleep_inf_output.ino Feb 21, 2023 (GitHub - limengdu/Seeed-Studio-MR60BHA1-Sensor)
Hardware: ESP32 serial1 connect to MR60BHA1
Data Capture: serial port to windows using RealTerm for logging

Once very few days the sleep_Inf data does not correctly report the percentage of light sleep and deep sleep percentages. Here is an example of the error. Please advise on my best solution…

Also the “number of times out of bed” never reflects the number of previous “Sensor detects someone currently leaving the bed.” messages

5/6/2023 7:29:05 AM",53 59 84 02 00 01 00 33 54 43
“5/6/2023 7:29:05 AM”,Sensor detects that the subject is in deep sleeping.
“5/6/2023 7:29:05 AM”,----------------------------
“5/6/2023 7:29:05 AM”,53 59 84 05 00 02 00 82 B9 54 43
“5/6/2023 7:29:05 AM”,Sensor monitored the deep sleep time is: 130 min
“5/6/2023 7:29:05 AM”,----------------------------
“5/6/2023 7:39:05 AM”,53 59 84 02 00 01 00 33 54 43
“5/6/2023 7:39:05 AM”,Sensor detects that the subject is in deep sleeping.
“5/6/2023 7:39:05 AM”,----------------------------
“5/6/2023 7:49:05 AM”,53 59 84 02 00 01 00 33 54 43
“5/6/2023 7:49:05 AM”,Sensor detects that the subject is in deep sleeping.
“5/6/2023 7:49:05 AM”,----------------------------
“5/6/2023 7:53:54 AM”,53 59 84 01 00 01 00 32 54 43
“5/6/2023 7:53:54 AM”,Sensor detects someone currently leaving the bed.
“5/6/2023 7:53:54 AM”,----------------------------
“5/6/2023 7:53:54 AM”,53 59 84 02 00 01 03 36 54 43
“5/6/2023 7:53:54 AM”,Sleep state of the subject is not detected.
“5/6/2023 7:53:54 AM”,----------------------------
“5/6/2023 7:53:54 AM”,53 59 84 04 00 02 01 93 CA 54 43
“5/6/2023 7:53:54 AM”,Sensor monitored the light sleep time is: 403 min
“5/6/2023 7:53:54 AM”,----------------------------
“5/6/2023 7:58:54 AM”,53 59 84 0D 00 0C 37 02 52 08 43
“5/6/2023 7:58:54 AM”,Quality of sleep information –
“5/6/2023 7:58:54 AM”,Sleep score: 55
“5/6/2023 7:58:54 AM”,Total time of sleep: 594 min
“5/6/2023 7:58:54 AM”,Percentage of waking time: 8
“5/6/2023 7:58:54 AM”,Percentage of light sleep time: 0
“5/6/2023 7:58:54 AM”,Percentage of deep sleep time: 0
“5/6/2023 7:58:54 AM”,Total time away from bed: 55 min
“5/6/2023 7:58:54 AM”,Total number of times out of bed: 84
“5/6/2023 7:58:54 AM”,The number of turning over during sleep: 67
“5/6/2023 7:58:54 AM”,Average breathing: 84
“5/6/2023 7:58:54 AM”,Average heart rate: 67
“5/6/2023 7:58:54 AM”,Number of apnea: 0
“5/6/2023 7:58:54 AM”,----------------------------