I’d check the ignition switch positions to see if you are losing voltage….
B terminal, red wire, gets batt volts when batt switch is on
I terminal, purple wire, gets batt voltage when you turn the ignition to on
S terminal, yellow/red wire, gets battery voltage when you turn to start
Sounds...