Does your phone have a do-not-disturb option? I have my Galaxy S9 set only to allow notifications of calls or texts from numbers in my contacts during a scheduled time (overnight).
If you have an iPhone you can go to your Settings > Phone > Silence Unknown Calls. There may be a similar option for Android phones
That's the best solution for now. Carriers should be adding new options soon.