hello, would you mind clarifying which device you have? Does this happen randomly? Does this happen when the device is on the charger? Do you have multiple apps opened on your device?
We dont know what device you have to help you fix it. We have to know what your device is. Is it the Galaxy s10, galaxy note 10, galaxy s9? What phone or device do you have?