You likely didn’t set up the old version of MPICH correctly before installing LAMMPS.
I would recommend you uninstall both and instead install the new packages advertised here: LAMMPS Windows Installer Packages with support for MS-MPI - Testers needed
This uses a different MPI package that is much more recent, supported by Microsoft staff, and less complex to set up.