Based on your findings there is a high possibility that this might be due to some hardware failures. Search for any bug checks and BugCheck 124 is almost always a hardware problem. I would suggest you to contact Dell or run some diagnostic tool by Dell to find out any faculty hardware.
You can follow these below articles to find the driver and memory leak which is causing you this issue. Memtest is easy to use and is an accurate test of your computer memory. It can tell you if your memory is bad, a motherboard slot is bad, etc.
Once you find the faulty drivers you can then update or reinstall the specific driver to rectify this issue.
The below thread discusses the same issue and you can try out some troubleshooting steps from this and see if that helps you to sort the Issue.
Computer crashes when charging https://answers.microsoft.com/en-us/windows/forum/all/computer-crashes-when-charging/d1fa2e4f-bcb8-41e4-8011-b34f60eb5b81
--If the reply is helpful, please Upvote and Accept it as an answer–