After installing a driver for a new PCIe Wifi card, my /vars/logs folder started filling up, where it end up filling the entire disk space and wasn't able to boot Ubuntu (more info here) and just got a repetitive console error of pcieport Bus Error severity=corrected, type=Physical Layer, and now I can't do anything beyond this black screen to login.
After some reading I found this source from it's FOSS: https://itsfoss.com/pcie-bus-error-severity-corrected/
Turn on your computer and just select in the boot GRUB the Advanced Options for Ubuntu
Choose the latest Linux Recovery mode
Then in the Recovery Menu select the root option to open the console below, click enter to activate it.
ls -s -S /var/logto view the largest files, for me was
Delete each file by going first to the directory by
cd /var/logsand then remove them with the
You can check you actually deleted them by running the code of 4, then you should reboot by entering
After that you should be able to login to your Ubuntu account and quickly should modify your GRUB file to avoid the saving of this errors. For that I recommend the visiting the link above as it's in more detail. But be aware that is a temporal solution as the error will still be occurring in the background.