It is permissible to consume as much garlic as you wish and anytime. What you are not supposed to do – as a man –is to go into a Masjid while you have eaten garlic because the smell will annoy the worshipers.
If you swallow it and it has no smell, you have no problem at all
And Allah knows best