Help?

I didn't know where else to post this but my Samsung S8 has cut off on it's own twice recently after plugging it up to charge. It did it just a few minutes ago when I plugged it up to charge from 70% battery and I somehow cut it back on and the battery came back as 33%. How in the world is it cutting off on it's own and also having so much battery draining for no reason?