AI is not yet at the stage where you should trust the answers given you. For example, I used an AI to translate an algorithm (Reverse Bits in Word by Lookup Table on this "Bit-Twiddling Hacks" page) to Rust, and the values in the lookup table that it came up with -- it had trouble converting the macros to values, plus it didn't use macros -- were wrong. Fortunately, I know Rust well enough to have vetted and corrected the answer, but I feel the same needs to be done for everything -- let it suggest to you, but don't copy and paste the answers, make sure you understand everything it's doing with its solution.
That said, it can be a very powerful tool -- I used the entire translation (fraction of a second) and vetting process (an hour or two at the most) as a learning experience.
I would recommend you do the same with your efforts. E.G. don't assume that the fault was yours, make sure you understand exactly what the fault was, and learn what it would take to fix it. Or if it was the AI's fault, learn what it would take to have caught it before building the circuit.