The problem is that if it's just a notification and that's it, if it's continuous, a sort of pressure to notify you every day, every two times a day, the fact that there is a loan becomes very annoying. In that case I don't know how to do it, but just turn off notifications, I assume.
If the thing is that loan providers call you every day to notify you of the last date for loan repayment, then it will definitely be annoying. But I don't think most companies do this, or maybe when the last date comes, they call or message you regularly three or four days before the last date to notify you, and I will take it as normal.
And in the case of gambling sites, I would say that voice calling, whether it is daily or once or twice a month, is annoying to me because we already get restless when we see the promotions of gambling sites on social media and if they call, it becomes even more annoying. But I don't know which country you are in or if there is such a service in your country that your network and SIM providers have a separate feature to disable promotional messages or calls. You should look into this later, if there is such a feature, then you can use that feature to turn off such notifications.