faced same issue after andoid 10 update on my phone, just do one things next time when your phone automatically switchoff just wait and suddenly after phone on go to samsung member on your phone and then in feedback section ,raise a error complaint ,...