Getting error when trying to install

This is your issue: you are running the Buster version of Raspberry Pi OS on a Pi4. You need to upgrade to the Bullseye version and that will fix all the issues with the console