Hello! Maybe can you try changing power plan? Go to Start (Windows Icon) > Search "Edit Power Plan" > Change advanced power settings > Battery > Critical Battery Level > Set the value higher depending on your preference (10%-20%).
Then after you change the critical battery level then you should do the following: Collapse the Battery section > Click on Sleep > Sleep after > Change On Battery to "Never" > Change Plugged in to "Never" > OK.
Let me know if the issue is fixed or not and if it's still continue it is most likely that the hardware is not working correctly or something's wrong with the system configuration, let me know a bit further so that I can help you troubleshoot this problem.