The main wheel with the flattened teeth may be a victim rather than the cause of the problem. There may be underlying problems that caused the teeth to flatten.
In addition, the flattened teeth you noticed may have caused secondary damage in the clock wheel train.
Unless you solve the root problem, the situation will/may happen again.
It would be a good idea to check the integrity of the click, click return spring, ratchet wheel, the main spring, wear in the train, etc.
If that is a two train clock, both trains have gone through the wind, unwind cycle the same number of times and the other train may need attention as well.
Best Regards,
Dick