Large amplitude variability from the persistent ultracompact X-ray binary in NGC 1851