@johnw6761 and anyone else who encounters this issue – if you check the error log you’ll probably see this error :
PHP Fatal error: Uncaught Error: Call to a member function save_post() on null
To fix this just replace acf()->input->save_post($variation_id);
with acf_save_post($variation_id);
and it should save as expected.