Hi!
this problem is from one bug that relate to S-Pen Sound.
Factory Reset or other approach won’t solve this problem permanently and after 2 or 3 day your phone will mute suddenly!!
the permanent solution for this problem is “turn off only Sound of the S PEN” :
Setting -> advanced features -> S pen -> turn of sound of the S pen(the bottom of the page)!! —HamedCh