score:2
Does the Holy Sprit prevent one from praying for those to whom the intended prayer is of no use?
The short answer is no.
There is no Catholic teaching that states the Holy Sprit prevents one from praying for those to whom the intended prayer is of no use. The traditional point of view is that God will apply such prayers to another souls so that prayer will used effectively, although we may never know who profits from it.
This is how such things were explained to me while in the seminary.
Prayer in this sense for someone is never in vain!