That only happens when the cathelitic converter is not working or removed. Most harmyfull stuff comes from tyres and diesels with full particulate filters.
Yes some gets through but that's minute compared to otherwise, warm they reach 99+% efficiency.
Either it's safe to run a car in a closed garage, or a running car dumps toxic fumes. Would you run your car in a closed garage in the drivers seat to prove it's safe?
It happens on every single cold start, which you can napkin math to 10,000 - 100,000 times in the lifetime of a vehicle.