Hello
If you are facing such a issue kindly get your device checked by service center ,
As this might be a issue of battery damage , charging pin etc
I hope this would solve your issue

Regards
VaSu Gupta