In order to solve the issue, we need to find out what all PHP .ini files are getting loaded up as part of the webserver setup.

$ php --ini

Check php.ini file or any .ini files loaded as part of the webserver setup to see if the zip extension is enabled in multiple files.

extension=zip

We need to have only one reference line in order to enable the zip extension. Commenting out or removing the other references to enable this execution from multiple .ini file will cease the error from occurring in the console.