1. Fix template error:

If while publishing a template, the said error occurs, then make corrections to the current template or to the template that the bot mentions.

Once the corrections are made, you can try publishing again.

Here is a demonstration of the same.

2. Bot got deactivated. How to enable it again?

Read here.