Unable to reinstall MacOS Mojave on a hardware modified, mid-2012 MacBook Pro

I managed to solve it myself by going into recovery mode, trying but failing to install Mojave, then going to Disk Utility, view > show all volumes, having some files that said something to the effect of “EAS install files” (I can’t quite remember the name) burned to one of the internal SSDs. I then exited Disk Utility, went Apple Logo > Start-up Disk, & booted it up from one of the SSDs.

It then reinstalled fine, but it took about 6 hours in total.