If you have a session open and are a wheel user you can use systemd-run to fix new session creation problems that stem from invalid configuration or excessive open file limits.
This worked for me even when pkexec su --session-command and many other attempts did not
For example:
systemd-run sh -c "cat fixed.conf > /etc/security/limits.conf"