1994 gt idle problem....

i just changed my motor from a stock 302 to a ford racing GT40 long block with e cam. my car idles perfect when code, but once car is warm, car starts to surge and eventually dies out. i do have a code for the fuel pump primary circuit failure, not sure what dtc# it is, forgot. i wa wondering if i replace the multi function relay box in front of radiator, would that fix my idle problem. i had the same problem with the stock engine, but it got worse with the cam....
:SNSign: