malcriado,
you need to have a github account that is associated with your epic account: in your epic account details you need yo add your github user name. Then you will be invited to join epics network on github and be able to download their UE source code. Other details here: Downloading Unreal Engine Source Code | Unreal Engine 5.1 Documentation