Sacraments in a time of virus

A question has arisen that might disturb the peace of the Catholic faithful. If a bishop restricts, or even “suspends,” the sacraments, does that mean that a sacrament administered is invalid? It’s not a theoretical question. And the validity of the sacraments is of utmost importance.