APFS Container Resize error code is 49153 in High Sierra

This is how I sorted the error

  1. Reboot the machine
  2. Go into the 'Time Machine' pane of the System Preferences
  3. Right/Ctrl click the Time Machine drive icon
  4. Click 'Don't use {drive name} for Time Machine'
  5. Run tmutil thinlocalsnapshots / 9999999999999999 for the last time in Terminal
  6. Resize the disk.