Interesting, isn't it. I had this experience yesterday when I used someone else's R5. I and my friend both have R5's - he uses the native R mount 24-105 L lens while I use my older EF 24-105 L lens with a Canon adaptor.
He was doing a shoot at the official opening of our church and handed me the camera half way through when he went up on stage. I picked up the camera expecting it to work exactly the same way that mine does and found that the focus (on face/eye detect) was hunting all over the place and not snapping to the subject the way that mine does. Ok, don't panic ... I had a very quick look through his autofocus settings and had to change a bunch of them to get the behaviour that I was after - listed below - and then I could start taking people photos quite happily.
There is no doubt in my mind that the complexity and wealth of settings for the R5 will make life difficult for a number of people until they have time to effectively work through a group of settings that works well for them in a specific shooting situation.
My friend and I have both had Canon DSLR's for many years and I think that he is a really good photographer but he admits to having been incredibly frustrated by the autofocus complexity for the first few months of owning his R5.
The key problem from my perspective is that, as with many other aspects of camera operation (eg exposure), there are settings that work together to give an intended outcome, so it's not just a question of getting a single setting "right" but understanding what that means in relation to other complementary settings.
I also feel that some of the Canon default settings are not the ones that I would have chosen for most users in most situation, but that is a longer conversation.
Granted that we don't know exactly what settings the original poster had when experiencing this problem, these are the settings that I changed on my friends R5 to conform with my setup.
AF method =

tracking
Subject to deter = people
Eye detection = on
... were all set correctly so then I had to look at:
Servo AF Case = Auto (my friend had Case 3 set and not great for the environment we were shooting in)
Switching Tracked Subjects - this is not something to monkey about with and my friend had changed it for some reason so I set to "1" On Subject
Initial Servo AF pt for

= the first setting rather than Auto - really important when there is a "target rich environment" for the camera to potentially grab for focus
... and I also turned off Continuous AF to conserve battery life and because who needs it when you're not working with fast moving subjects.
Anyway, my two bits of input.