My Macbook’s touch bar is crashing quite frequently. This is how to reset it.

sudo pkill TouchBarServer