IF you are getting a battery symbol and it is brand new, I would bet the battery didn’t get plugged in all the way. The way this could be fixed is to pul the panel off the bottom and find the flex cable for the battery. Pry the connection up, then reconnect it. If this doesn’t work, then I would bet the actual flex cable/battery has a defect.
If this is a process you’re comfortable with, remember that any unauthorized repairs or modifications will void the products warranty.
If the product is out of warranty this would be a cheap and relatively easy troubleshoot, though if the product is in the warranty window the easiest thing would be to get it repaired at the Apple store. Most things like this will be free, especially if it’s a “lemon”.
Hope any of these responses/tips helps.
You can reference YouTube for visual aids on any of the topics I mentioned.
thanks!
-Tylor C.