The pump runs for the 8 minutes the shuts down and flashes code
What is the code it is flashing?
If this washer fills for to long I believe it has a safety feature. It will go into a pump out cycle and turn off.
How long does the washer run before it goes into the 8 minute drain cycle?
Have you tried switching it from hot to cold to see if you have both hot and cold water.
I'm guessing that for some reason the washer is not filling with water in the amount of time it should.
The machine can tell the water level switch has not been tripped telling it's full, so then the safety mode kicks in and does the 8 min drain.
Why your washer does not fill with water I think is the real question here.