Software issues

Why my new Nokia 2.1 has problems of being unexpectedly and automatically power on-off many times and heating while charging ?