For years, Apple have been locking down parts to their phones. In this case with batteries, you get a message saying that your battery needs to be serviced, even if you are using a genuine Apple battery from another phone.
I’m not sure if I’ve missed other manufacturers doing this with batteries, the only other one I remember was OnePlus encrypting the battery in their new OnePlus pad. It’s unfortunate that some manufacturers see what Apple have been doing, then followed in their footsteps with pairing screens - on some phones you can’t use the fingerprint scanner if you have swapped the screen, it’s ridiculous.
The phone I use from oppo won’t complain if I were to replace parts in it. Though given that oppo and oneplus are owned by the same company, I wouldn’t be surprised if that changes soon.