I had this situation for a while, while running Spotify, the touch bar are only showing F1 F2 F3 F4 to F12 function keys, but not the volume control or shuffle buttons.
1.I tried reinstalled Spotify, but it didn't solve the problem.
it looks like the following picture.