Compilation error when making a copy from UE5.0 to UE5.1

A friend sent me a project for me to expand on. His project is built using UE 5.0. I have a MacBook running MacOS Ventura and xcode 14.2, so I have to use UE 5.1.
I opened the project by selecting the .uproject file and I was prompted to create a copy of the project in order to not damange the original file due to the use of a different UE. I selected that option and the files were generated, but then I was prompted with the following (please help, I am getting a bit desperate):

The project could not be compiled. Would you like to open it in Xcode?

Setting up bundled DotNet SDK
/Users/Shared/Epic Games/UE_5.1/Engine/Build/BatchFiles/Mac/…/…/…/Binaries/ThirdParty/DotNet/6.0.302/mac-x64
Running dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll Development Mac -Project=/user/Documents/Bachelor’s_Project/Git_Repo 5.1/UniProject.uproject -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: /user/Library/Application Support/Epic/UnrealBuildTool/Log.txt
DEPRECATION: ‘IniKeyBlacklist’, which is a config key in section [/Script/UnrealEd.ProjectPackagingSettings], in ‘/user/Documents/Bachelor’s_Project/Git_Repo 5.1/Config/DefaultGame.ini’, has been deprecated. Using ‘IniKeyDenylist’ instead. It is recommended you update your .ini files as soon as possible, and replace IniKeyBlacklist with IniKeyDenylist
DEPRECATION: ‘IniSectionBlacklist’, which is a config key in section [/Script/UnrealEd.ProjectPackagingSettings], in ‘/user/Documents/Bachelor’s_Project/Git_Repo 5.1/Config/DefaultGame.ini’, has been deprecated. Using ‘IniSectionDenylist’ instead. It is recommended you update your .ini files as soon as possible, and replace IniSectionBlacklist with IniSectionDenylist
/Applications/Xcode.app/Contents/Developer
Using ‘git status’ to determine working set for adaptive non-unity build (/user/Documents/Bachelor’s_Project/Git_Repo 5.1).
Creating makefile for UniProjectEditor (no existing makefile)
@progress push 5%
Parsing headers for UniProjectEditor
Running Internal UnrealHeaderTool “/user/Documents/Bachelor’s_Project/Git_Repo 5.1/UniProject.uproject” “/user/Documents/Bachelor’s_Project/Git_Repo 5.1/Intermediate/Build/Mac/x86_64/UniProjectEditor/Development/UniProjectEditor.uhtmanifest” -WarningsAsErrors -installed
Total of 4 written
Reflection code generated for UniProjectEditor in 3.2168951 seconds
@progress pop
Building UniProjectEditor…
[Upgrade]
[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
[Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
[Upgrade] Suppress this message by setting ‘IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;’ in UniProjectEditor.Target.cs.
[Upgrade] Alternatively you can set this to ‘EngineIncludeOrderVersion.Latest’ to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
[Upgrade]
Determining max actions to execute in parallel (8 physical cores, 8 logical cores)
Executing up to 8 processes, one per physical core
Requested 1.5 GB free memory per action, 3.34 GB available: limiting max parallel actions to 2
Building 7 actions with 2 processes…
[1/7] Compile UniProject.init.gen.cpp cancelled
[2/7] Compile UniProjectGameModeBase.gen.cpp cancelled
[3/7] WriteMetadata UniProjectEditor.target cancelled
[4/7] Link UnrealEditor-UniProject.dylib cancelled
[5/7] Compile SharedPCH.Engine.ShadowErrors.InclOrderUnreal5_0.h
clang: error: no such file or directory: ‘@/user/Documents/Bachelors_Project/Git_Repo’
clang: error: no such file or directory: ‘5.1/Intermediate/Build/Mac/x86_64/UniProjectEditor/Development/Engine/SharedPCH.Engine.ShadowErrors.InclOrderUnreal5_0.h.gch.response’
clang: error: no input files
[6/7] Compile UniProject.cpp cancelled
[7/7] Compile UniProjectGameModeBase.cpp cancelled