I think the small gear is 14 teeth and not 13. It is a little hard to see in the pictures.
I think you could buy a spur gear from Stock Drive and carefully file the teeth to mate with the worm.
Years ago, I made a spur gear for a 44 Ton GE loco. Wasn't exactly precise, but it worked. This was probably 40+ years ago.