1.) Always disable autostart of VMs before changing any hardware so no wrong PCIe devices get passed through crashing your whole server before you are actually would be able to login using webUI or SSH to fix stuff.
2.) You will probably have to change all occurrences (should be at least two) of the NIC name in /etc/network/intefaces and then do a reboot or systemctl restart networking
, as the NIC name might change when adding or removing PCIe cards and then your old network config won't match anymore. So you need a IPMI with webKVM or connect a display + keyboard to your server to be able to log in into the local PVE console to edit the network config from there. You can see the new NIC names with ip addr
.