electrical problem i think?

i have electronic ignition i have the two prong resistor i have the four pin module sometimes my car will die in drive or reverse with the lights on or sometimes when there off i have replaced the alt regulator module ballast the car drive perfect but then sometimes it will get a little shakey i was thinking it was my ballast resistor cause it would get hot is it suppose to? now thinking about it is next to the intake manifold let me know what you guys think!!!