Hi [NAME] welcome to this free user to user Alienware laptop discussion forum. This is not Dell Support.  From your description it seems that new battery is not acceptable and the charging circuit is protecting the laptop from damage. Please check the OEM battery white label for year/month beneath the square matrix. The battery may be too old and vendor should provide new OEM battery that can be used. The Dell Part Number (DP/N) should be correct for your system.  [IMAGE]New OEM Alienware 17 R4, 15 R3 Battery 99Wh DP/N 9NJM1 Create Windows battery report to check that battery is new and not dead (End of Life). Windows 10 Battery Report: What It Is And How to Use It (lifewire.com) 
I am hoping I do not have a problem with the motherboard, but it feels like I have tried everything.  My battery was depleting and was behaving erratically. Eventually wouldn't work with battery connected so I replaced it so I have a brand new battery. Before I did it works just fine on mains power only after disconnecting the battery.  I receive the error message 'The battery is temporary disable, please turn off the computer and try again when the unit is back to operational temperature'. Have tried reseating the battery etc (power drain, resetting bios) but doesn't work. I can select 'continue' and it boots fine, I can see the battery and it is charged at 43%, but will not charge. It just remains static (except when I disconnect the power lead and it then depletes so will eventually deplete to zero).  Bios up to date, drivers up to date. Have done a windows reset and all drivers have been updated. Have deleted the drivers for the AC adapter and battery so it's none of those things.  Operating windows 11 home.  Any other suggestions please? ThanksLee
17 R5, battery works, power via mains works, but battery does not charge - new 
battery