Mac shutdown cause

Hello, my Macbook Pro (MacOS Mojave version 10.14.6) shuts down randomly when it still has battery, but says it doesn't have battery left. Then when I plug it, shows that it does have battery, which is very odd. I looked into the terminal, with the command: log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h to see which was the cause, and it appears:  Previous shutdown cause: -11 but I can't find anywhere what this means, does anyone know the meaning of -11? thank you.