I suggest you test your KH and GH as calcium carbonate raises both of these and is also the primary ingredient of "garden lime."
Anaerobic substrate occurs because oxygen cannot penetrate. if you have plants in your substrate, they will bring oxygen from the water down to there roots and release it to oxygenate the soil. They do this to encourage the growth of bacteria that need O.
If you started with dry loose soil, then trapping air is not that unusual and it will take time for it to be forced out. Anaerobic pockets need to be disturbed to release their toxic gasses and you will smell them.
The denitrifying bacteria in tanks want anoxic rather than anaerobic conditions. They only make toxic gas in the complete lack of O. Normally, they work by extracting bound oxygen from nitrate. Anaerobic means no O, either free or bound. Anoxic means there is very little or no free O but there is available bound O. Remember, Nitrate is NO3, that is one nitrogen and three oxygen (those 3 Os are bound).
As long as denitrifying bacteria have bound O, they convert the nitrate in nitrogen gas which is basically harmless. However, once there is neither free or bound 0, these bacteria will use sulfates and when they do the result is they make hydrogen sulfide
Hydrogen sulfide (also known as H2S, sewer gas, swamp gas, stink damp, and sour damp) is a colorless gas known for its pungent "rotten egg" odor at low concentrations. It is extremely flammable and highly toxic.
from
https/www.osha.gov/SLTC/hydrogensulfide/
Denitrifying bacteria are some of the slowest to establish in tanks (if they do at all) and usually require many months to do so.
You do not have anaerobic pockets or such bacteria in your tank this soon.