Add handling of out of memory handling while adding a worklet module.