starting when releasing key
If it's not the ballast resistor check the ground on the control box. I had a '77 pickup that would do that about once every year. I'd pull the control box, scotch brite the firewall and the ear of the control box and it would behave properly for another year.