The first sentence is correct. Here is a rephrasing:
i. The machine was so flawless that (as a result) I could not find any problem even after four hours of probing
The second sentence would be correct if you strike out "such"
ii. The machine was a flawless one as (because, due to the fact that) I could not find any problem even after four hours of probing.