Seems like you figured out the problems yourself. The display from the icloud locked phone is probably just bad, since your old one works. Regarding the battery issue, even if you buy a brand new iPhone XR and take the battery from that phone and use it in your current one the phone will say it’s not a genuine battery. It’s one of those Apple tactics to make people afraid of non apple authorized repairshops and repairs overall.