Also put the project folder into the same UE4 folder and compiled the project to get this error message:
Sandbox filewrapper tried to access
project path before it was set
Update: got it working, my issue was the way I was using the cooker on the fly, you need to launch it with your project name or the path to the .uproject file Cooking Content in Unreal Engine | Unreal Engine 5.3 Documentation