The iPhone 12 was discontinued in September 2023, so if the phone was really "new" when you purchased it 8 months ago, the phone sat in a warehouse somewhere for a minimum of 5 months, likely longer. This would not have been good for the battery.
But, if you really did purchase the phone "new" from an authorized Apple dealer 8 months ago, the phone is still under the AppleCare warranty for another 3-4 months, so any service that might be required would be covered by the warranty.
The real bottom line here......the battery is not going work correctly until you take the phone in for service.....but the decision is yours.