Disable automatic macOS sleep
Sleeping on macOS messes up Thunderbolt USB devices, so I just can't have it happening.
sudo pmset -a sleep 0
For good measure, also enable "Prevent automatic sleeping when the display is off" under System Settings > Energy