"stuck at 18.9% " and definitely "immediate shutdown if unplugged" - either battery is faulty or your laptop's battery-connection is broken.
My guess, at least.