With the help of:
Suggested to use Philz recovery version 6.25.x. Anything else might cause issues.
If building on Windows, make sure you run this command before cloning
git config --global core.autocrlf false
If you're still having issues with flashing try running this command
git config --global core.eol lf