I don't know where you read this, but it's not quite accurate.
What was happening before - and what the FIA have outlawed for 2022 - is that teams were using automated systems to predict when each stage of their pit-stop was going to happen, allowing them to react to it faster than would otherwise be possible - for example, releasing the front jack at the exact instant the last wheel went on. Reacting to events before they've happened naturally carries risks - namely, that the event actually hasn't happened, and you're now releasing the car in an unsafe condition.
The FIA outlawing these systems, and reintroducing human reaction times, means that pitstops are slightly slower and more deliberate, such that making a pitstop in less than 2 seconds is now much harder than before. However, doing so is neither illegal nor impossible: at the 2023 Qatar Grand Prix, McLaren broke the world record for fastest pitstop by changing Lando Norris' tyres in just 1.80 seconds. They faced no punishment and were awarded the DHL Fastest Pit Stop award for that race.