Is the contract signed by the company imitating other people's product patents valid?

It is an infringement for a company to copy other people's product patents. There are two ways to solve the infringement, one is to stop the infringement, and the other is to pay royalties. In fact, many things in reality are ignored by the public, which means that infringement is generally unimpeded unless the patentee comes out to stop it. Even if the patentee puts forward opinions, it often takes a long process to define the infringement. One is that the result is unpredictable, and the other is that there are many ways to circumvent patent rights.

If the patentee is involved in filing a complaint, the conclusion is to stop the intermittent infringement, that is to say, the product cannot be copied as planned and the signed contract cannot be continued.

If it is the latter, it is completely legal to pay royalties.

So this kind of thing generally does not affect the legal effect of the contract.