I got the same error about 1 out of 10 times when calling a component called st_cropper. The st_cropper component has an option called realtime update, and if it was True, the component would be updated immediately whenever some parameter was changed, but if the value of this realtime update was always set to False, the error would not occur.