The issue...your battery is almost dead. It is not some fake message. If Windows says your battery is nearing the end of its life it is because the hardware, the battery in this case has said it is. Windows is only reading what the hardware tells it. If the hardware is lying then you have bigger issues.
Either you listen to the warning and replace your battery, or you ignore it until your battery no longer last for a minute. There is no fix for Windows, because Windows is only reporting what the hardware tells it. And it is not going to second guess the hardware.
* Another might be malware so you should run a scan just in case
* Also be aware, if you live in a hot climate, your batteries will die much sooner. Lithium-ion batteries, like those used in your laptop, are sensitive to heat.