The PRE_OPERATIONS_EXEC event occurs before the lock file gets installed and operations are executed.
The event listener method receives an Composer\Installer\InstallerEvent instance.
public const PRE_OPERATIONS_EXEC = 'pre-operations-exec';