what can be spread on soil to get rid of the smell
The soil under your stones has been compacted and wet. It just needs to be aerated. You can try digging sand into it, or mix in some compost to give it some oxygen. This article has some other great suggestions: https://www.gardeningknowhow.com/garden-how-to/soil-fertilizers/ammonia-odors-in-garden.htm