I had this with my S9+. Often it was just a bug but eventually Samsung replaced it. Now I have it again.
Personally, I will never buy another Samsung phone because of this. The phone is now almost 3 years old, and unusable when away from home (where at least I have a wireless charger). I would prefer to be able to override it and take this risk of it damaging the phone, then getting a new one if that happened. As it is I am left with a phone nannied into near-uselessness.