Check whether the flange is fitted to the motor and fully seated, and whether the metal contacts on the flange are free of milk residue, water or grease.
After cleaning and drying, refit the flange until it clicks, then power on and check whether the code clears. If it clears, the pump is normal — E53 is only a “flange not detected” prompt, not a fault.
If E54 is shown, check whether the pump was used right after charging, or whether the flange had been kept in the fridge; if so, leave the motor and the flange at room temperature until they return to normal, then reconnect and test again.
If the code persists, fit the same flange to a second motor unit to confirm whether the fault is on the motor or on the flange.