You can restart the Touch Bar on a Mac when it occasionally freezes or stops without restarting the entire laptop.
You can check the memory on a Mac computer in its Activity Monitor by reading a memory pressure graph. Here's how to do it.