Macbook Air says it's out of battery when it's not
My (old) Macbook Air has just started saying it's out of battery when I turn it on after a while, even if I left it with high charge. However when I plug it in, it immediately turns on and is back to the charge it was left at. Is there any way to fix this?
MacBook Air 13″, macOS 10.15