Error in GROMACS

GROMACS version: 2023.4
GROMACS modification: Yes/No
Here post your question: Dear GROMACS users, I am a new user of GROMACS. I am trying run a simulation using Terminal. But got an error message. Here I attached the whole code:
% export GMXDIR=/usr/local/gromacs/bin
% source $GMXDIR/GMXRC
% gmx pdb2gmx -f 1EIY-Mg.pdb -o 1EIY.gro -water tip3p -ff charmm36-jul2022 -ter true

Error Message: Standard library runtime error (possible bug): (exception type: NSt3__14__fs10filesystem16filesystem_errorE) filesystem error: in current_path: call to getcwd failed: Operation not permitted.

I don’t understand what should I do now.