So just putting this here in case anyone else has this problem.
I solved it by setting the card in the engine config files.
Go to Program Files / Epic Games / UE_5.0EA / Engine / Config / ConsoleVariables.ini
Add r.GraphicsAdapter=x
Where X is the index of the graphics adapter that the engine should use.
Hope this helps anyone else with this problem.