APFS Container Resize error code is 49153 in High Sierra I am trying to resize my partition using the following 

sudo diskutil apfs resizeContainer disk0s2 450g ExFAT Ubuntu 50g


However I am getting the error:

APFS Container Resize error code is 49153
Error: -69606: A problem occurred while resizing APFS Container 
structures


I followed the instructions listed on this thread: https://stackoverflow.com/questions/46424915/apfs-container-resize-error-code-is-49153 but they are not working for me. I also turned off automatic backups and rebooted my machine and still nothing. Any ideas on how to proceed?
This is how I sorted the error


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