As above.
Additionally, keep in mind that these issues could be related also to low battery voltage.
If the battery is new, then it is possible that there's an undetected underlying issue that caused the old battery to go flat in the first instance, and is now affecting the new battery in the same way.
E.g. rogue electrical consumer causing battery drain, failing alternator, faulty battery managmnet module, etc.
But as DSM10000 said, start with getting the fault code read.