Definitely agree with @John Galt's assessment. You most likely received a defective battery. Unfortunately the quality of third party Lithium batteries is extremely poor even when purchased from a reputable vendor such as OWC or iFixIt.
Many third party batteries may not show the Battery condition as "Normal" and the Apple Diagnostics may declare even a good third party battery as defective since it doesn't communicate the expected information that an OEM battery would communicate. Some third party batteries will show a "Normal" battery condition and will even pass the Apple Diagnostics. Unfortunately the only way to know is by checking macOS & the diagnostics immediately after the battery is first installed so you have a baseline for comparison. If a brand new third party battery shows any "Replace" or "Service" condition, then it hard to say whether this is normal for that battery or whether the battery really is bad unless you had an earlier base line to compare it with.
You can try an SMC Reset.
Reset the SMC of your Mac - Apple Support
Keep in mind, the age of the replacement battery and whether the battery has been properly maintained while in storage awaiting to be sold will also determine the health of the battery when you receive it. I cannot imagine most vendors are selling too many batteries for such an old laptop....so this adds to the likelihood of receiving a defective battery in addition to the already difficult task of getting a good third party Lithium battery.