Best way to fill gaps between lumber and masonry or rocks
I have seen fine wood dust mixed with a putty of some kind mixed and placed inside gaps, if the wood is stained then also add a little stain to match the color.
Sanding down to the exact shape would have been the first step for me then doing the filling.