Can't Compile Editor macOS

Hey guys! I recently joined a project and downloaded the code from source control, when I tried opening the project it game me the message “Missing Branching Sickness[Project Name] Modules” and gives me the option to rebuild, however, when I do rebuild. It gives me an error saying the project could not be compiled and to build from source. I have searched the internet for hours to find a solution, but none have worked for me. Here is the error log I am using an m1 mac on big Sur. Thank you in advance!