Battery Behaving Very Strangely

I recently charged my iPhone XS Max (had its battery swapped out a year ago) and it just remained stuck at the dead battery icon no matter how long it charged. So I swapped the battery with the original battery I kept after having replaced it. The phone then turned on but won’t charge beyond 1% with the battery health not showing and the phone dying soon after. How do I fix this? all help would be appreciated!

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0