Please fix up any grammatical flaws in the following text:
Their design errors eventually would result in the malfunction of the products, thus cause accidents.
Their design errors eventually would result in the malfunction of the products, thus causing accidents.