For this reason and spam calls, I have a free Google Voice number that I use for all services. I never give my cell #...
This has also happened to me when using MVNO carriers (Cricket, for example).
It can be set up to forward inbound texts to another number, or you can see them via the app.
I haven't had the "blocked" issues others have, and.. in the case of the IRS, I do have someone who files my paperwork for me.