I've seen quite a few similar posts to yours on this forum and others and it seems to me to be on the most part a glitch. Although of course some phone's have been in contact with water or extreme change of temperature can cause droplets inside the phone.
If the usual fixes available via a Google search are not helping then a Samsung Experience Store or Samsung Service Centre can take a look.
I wish you all the best with this @Randilio1
Daily Driver > Samsung Galaxy s²² Ultra 256Gb in Phantom Black.
The advice I offer is my own and does not represent Samsung’s position.
I'm here to help. " This is the way. "
I have the EXACT same problem. I've been leaning towards software for the longest time, but honestly, I don't even know anymore. I keep contacting Samsung with no luck. I'll get back to you if I resolve this. I just want to listen to music in my car 😂.
For me the following steps works . I did a force restart and plug in the charger
I will get the message whenever i plugged in my Type C Akg Headset, Type C Monitor and etc.