GE washer question ??

GE Washer Model ghwn4250d1ww
Does not work on certain wash cycles WHITES/LIGHT & COLORS/REGULAR
We use Colors/Regular cycle most often but when I try to use machine turn on then shuts off 5 seconds later. machine is 3 yrs old. Any ideas appreciated, Thanks !