Did you try sound profile manager
https://forums.androidcentral.com/e?...token=HZvK8MZM instal and set a profile for night for example...but leave the ringer on the volume you want for allowed calls. Then go into phone settings and set up your blocked or allowed called and texts and the time parameters.
Samsung does not allow for separate volume controls of texts and calls...if you silence the calls you silence everything unless you use the right sound profile app.
Hope this works for you as it works great for me.
I have a profile set up for Work, Home, Night,Silent and have created a shortcut widget for each mode so that I can just press the little 1x1 widget and my sound settings go to what I have selected.
This app has never failed me...good luck.