Your breast pump may be spilling milk because of improper assembly of the breast shield and the cup. The connection between the breast shield and the cup must be fully sealed and closed.
During the assembly, make sure that the rim is fully rolled over the edges of the collection cup.