Thanks PCW for your reply, I remembered that I had compiled the Orange Pi 5 core and checked the network interrupts and they were different from the ones I had isolated before, so I changed the network IRQs to the isolated cores and now I get better results. I have done several tests and it has not failed again.
angel@orangepi5:~$ sudo chrt 99 ping -i .001 -q 10.10.10.10 -c 50000
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
--- 10.10.10.10 ping statistics ---
50000 packets transmitted, 50000 received, 0% packet loss, time 50002ms
rtt min/avg/max/mdev = 0.148/0.156/0.345/0.001 ms
angel@orangepi5:~$ sudo chrt 99 ping -i .001 -q 10.10.10.10 -c 50000
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
--- 10.10.10.10 ping statistics ---
50000 packets transmitted, 50000 received, 0% packet loss, time 50001ms
rtt min/avg/max/mdev = 0.155/0.156/0.186/0.000 ms
angel@orangepi5:~$ sudo chrt 99 ping -i .001 -q 10.10.10.10 -c 50000
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
--- 10.10.10.10 ping statistics ---
50000 packets transmitted, 50000 received, 0% packet loss, time 50001ms
rtt min/avg/max/mdev = 0.155/0.156/0.186/0.000 ms