Water Hammer Arrester Shutting off Water
You might have supply hoses that have an internal shutoff valve in one end which closes if the flow rate is too large. These are designed as protection against a ruptured hose. One brand is Watts FloodSafe(tm) supply hoses.

If you have these, one might be malfunctioning or connected backwards. This type is unidirectional; the end with the control valve must be connected to the water supply. Standard hoses will work no matter which end is connected to the water supply.

I have a set of Watts FloodSafe hoses in a cabinet, but I have not tried to install them on our new "smart" top loader. I had installed them on the washer of an elderly neighbor, but he was dissatisfied with them because his washer was taking too long to fill. I removed them and put in the standard hoses. It is possible that some of the new washers have sensors to detect low flow. Your washer might be detecting low flow and is programmed to shut off and report an error.