Volume control sometimes stuck on MBP '18

Solution 1:

First of all, restart your MacBookPro

If this doesn't work than try reinstalling macOS by booting into recovery mode by pressing command+r while startup, select "reinstall macOS". I recommend doing a backup first even you won't loose any of your files and settings.