It could be a bad connection in the wiring to the pump. A bad connection can heat up and cause the connection to get worse. Does the pump sound any different before it stops? Check the voltage at the pump when it's cold and then after it runs a while.