Mac will not install MacOS from internet recovery mode.
My Macbook, running Catalina started playing up so I decided to copy all my documents (not via time machine, rather manually into a external drive). I then restarted my Mac and in the process I pressed the keys command + R. That took me to the recovery mode. From there I erased my Macintosh HD disk. Then I went back and clicked on "reinstall MacOS" which then started installing. Near the end an error messaged popped up "Could not create a pre-boot volume for APFS install". I had no idea what that meant so I did some research and was advised to restart my mac and press Command + option/alt + R, for internet recovery mode. I did that and then clicked on reinstall MacOS, but it would install Sierra, rather than Catalina (the system that my mac came installed with.) I did that and it started downloading but AGAIN towards the end it came up with another error message "an error occurred while preparing the installation. Try running this application again" I tried running it around 3 times but the same happens. I again i did some research and found that maybe it's to do with the time. So i went on terminal and wrote the date and then tried installing again, but I keep getting the same error message. I tried restarting my mac again, and pressed command+R to go back to recovery mode, but now it only goes to internet recovery.
I tried going back to disk utility to erase my drives but was shocked to find there were multiple drives, for example in the internal section there is "Apple APFS Media", which has disks indented called "Macintosh HD, Preboot, Recovery, VM, under it. Some other disk include: Apple SSD SM0128G media.
Under the disk Images section, there is "apple disk image media, which has "OS X base System" indented under it.
I am so lost, someone please help me, I really need my Mac, with school, as school is online and I have no other device I can use.
Thanks in advance!
MacBook Air 13", macOS 10.15